2009-12-22 23:50:29 +01:00
|
|
|
//===- Disassembler.h - Text File Disassembler ----------------------------===//
|
2009-12-17 02:49:59 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This class implements the disassembler of strings of bytes written in
|
|
|
|
// hexadecimal, from standard input or from a file.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-12-22 23:50:29 +01:00
|
|
|
#ifndef DISASSEMBLER_H
|
|
|
|
#define DISASSEMBLER_H
|
2009-12-17 02:49:59 +01:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MemoryBuffer;
|
2011-03-21 05:13:46 +01:00
|
|
|
class Target;
|
2010-08-20 03:07:01 +02:00
|
|
|
class raw_ostream;
|
2012-04-16 13:32:10 +02:00
|
|
|
class SourceMgr;
|
|
|
|
class MCSubtargetInfo;
|
|
|
|
class MCStreamer;
|
2009-12-17 02:49:59 +01:00
|
|
|
|
2009-12-22 23:50:29 +01:00
|
|
|
class Disassembler {
|
2009-12-17 02:49:59 +01:00
|
|
|
public:
|
2012-04-16 13:32:10 +02:00
|
|
|
static int disassemble(const Target &T,
|
|
|
|
const std::string &Triple,
|
|
|
|
MCSubtargetInfo &STI,
|
|
|
|
MCStreamer &Streamer,
|
|
|
|
MemoryBuffer &Buffer,
|
|
|
|
SourceMgr &SM,
|
2010-08-20 03:07:01 +02:00
|
|
|
raw_ostream &Out);
|
2009-12-17 02:49:59 +01:00
|
|
|
};
|
2011-05-09 22:05:25 +02:00
|
|
|
|
2009-12-17 02:49:59 +01:00
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|