2009-12-23 06:50:29 +08:00
|
|
|
//===- Disassembler.h - Text File Disassembler ----------------------------===//
|
2009-12-17 09:49:59 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2009-12-17 09:49:59 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This class implements the disassembler of strings of bytes written in
|
|
|
|
// hexadecimal, from standard input or from a file.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2014-08-14 00:26:38 +08:00
|
|
|
#ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
|
|
|
|
#define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H
|
2009-12-17 09:49:59 +08:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
class MemoryBuffer;
|
2011-03-21 12:13:46 +08:00
|
|
|
class Target;
|
2010-08-20 09:07:01 +08:00
|
|
|
class raw_ostream;
|
2012-04-16 19:32:10 +08:00
|
|
|
class SourceMgr;
|
2019-10-16 02:28:22 +08:00
|
|
|
class MCContext;
|
2012-04-16 19:32:10 +08:00
|
|
|
class MCSubtargetInfo;
|
|
|
|
class MCStreamer;
|
2019-10-23 18:24:35 +08:00
|
|
|
class MCTargetOptions;
|
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:
|
2019-10-16 02:28:22 +08:00
|
|
|
static int disassemble(const Target &T, const std::string &Triple,
|
|
|
|
MCSubtargetInfo &STI, MCStreamer &Streamer,
|
|
|
|
MemoryBuffer &Buffer, SourceMgr &SM, MCContext &Ctx,
|
2019-10-23 18:24:35 +08:00
|
|
|
raw_ostream &Out, const MCTargetOptions &MCOptions);
|
2009-12-17 09:49:59 +08:00
|
|
|
};
|
2011-05-10 04:05:25 +08:00
|
|
|
|
2009-12-17 09:49:59 +08:00
|
|
|
} // namespace llvm
|
|
|
|
|
|
|
|
#endif
|