Disassembler.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 MCContext;
  22. class MCSubtargetInfo;
  23. class MCStreamer;
  24. class MCTargetOptions;
  25. class Disassembler {
  26. public:
  27. static int disassemble(const Target &T, const std::string &Triple,
  28. MCSubtargetInfo &STI, MCStreamer &Streamer,
  29. MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
  30. raw_ostream &Out, const MCTargetOptions &MCOptions);
  31. };
  32. } // namespace llvm
  33. #endif