38 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8//9// This class implements the disassembler of strings of bytes written in10// hexadecimal, from standard input or from a file.11//12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H15#define LLVM_TOOLS_LLVM_MC_DISASSEMBLER_H16 17#include <string>18 19namespace llvm {20 21class MemoryBuffer;22class Target;23class raw_ostream;24class SourceMgr;25class MCSubtargetInfo;26class MCStreamer;27 28class Disassembler {29public:30 static int disassemble(const Target &T, const std::string &Triple,31 MCSubtargetInfo &STI, MCStreamer &Streamer,32 MemoryBuffer &Buffer, SourceMgr &SM, raw_ostream &Out);33};34 35} // namespace llvm36 37#endif38