Disassembler.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //===- Disassembler.h - Text File Disassembler ----------------------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // This class implements the disassembler of strings of bytes written in
  11. // hexadecimal, from standard input or from a file.
  12. //
  13. //===----------------------------------------------------------------------===//
  14. #ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
  15. #define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
  16. #include <string>
  17. namespace llvm {
  18. class MemoryBuffer;
  19. class Target;
  20. class raw_ostream;
  21. class SourceMgr;
  22. class MCSubtargetInfo;
  23. class MCStreamer;
  24. class Disassembler {
  25. public:
  26. static int disassemble(const Target &T,
  27. const std::string &Triple,
  28. MCSubtargetInfo &STI,
  29. MCStreamer &Streamer,
  30. MemoryBuffer &Buffer,
  31. SourceMgr &SM,
  32. raw_ostream &Out);
  33. };
  34. } // namespace llvm
  35. #endif