2009-12-23 06:50:29 +08:00
|
|
|
//===- Disassembler.h - Text File Disassembler ----------------------------===//
|
2009-12-17 09:49:59 +08: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-23 06:50:29 +08:00
|
|
|
#ifndef DISASSEMBLER_H
|
|
|
|
#define DISASSEMBLER_H
|
2009-12-17 09:49:59 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class Target;
|
|
|
|
class MemoryBuffer;
|
2010-08-20 09:07:01 +08:00
|
|
|
class raw_ostream;
|
2009-12-17 09:49:59 +08:00
|
|
|
|
2009-12-23 06:50:29 +08:00
|
|
|
class Disassembler {
|
2009-12-17 09:49:59 +08:00
|
|
|
public:
|
|
|
|
static int disassemble(const Target &target,
|
|
|
|
const std::string &tripleString,
|
2010-08-20 09:07:01 +08:00
|
|
|
MemoryBuffer &buffer,
|
|
|
|
raw_ostream &Out);
|
2010-04-13 03:43:00 +08:00
|
|
|
|
|
|
|
static int disassembleEnhanced(const std::string &tripleString,
|
2010-08-20 09:07:01 +08:00
|
|
|
MemoryBuffer &buffer,
|
|
|
|
raw_ostream &Out);
|
2009-12-17 09:49:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|