Disassembler.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //===- Disassembler.h - Text File Disassembler ----------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // This class implements the disassembler of strings of bytes written in
  10. // hexadecimal, from standard input or from a file.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
  14. #define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
  15. #include <string>
  16. namespace llvm {
  17. class MemoryBuffer;
  18. class Target;
  19. class raw_ostream;
  20. class SourceMgr;
  21. class MCSubtargetInfo;
  22. class MCStreamer;
  23. class Disassembler {
  24. public:
  25. static int disassemble(const Target &T, const std::string &Triple,
  26. MCSubtargetInfo &STI, MCStreamer &Streamer,
  27. MemoryBuffer &Buffer, SourceMgr &SM, raw_ostream &Out);
  28. };
  29. } // namespace llvm
  30. #endif