blob: 78c2f854946d4058e78ec33bc617a2beab3c9564 [file] [log] [blame]
Chris Lattnera3dcfb12009-12-22 22:50:29 +00001//===- Disassembler.h - Text File Disassembler ----------------------------===//
Sean Callananba847da2009-12-17 01:49:59 +00002//
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
Chris Lattnera3dcfb12009-12-22 22:50:29 +000015#ifndef DISASSEMBLER_H
16#define DISASSEMBLER_H
Sean Callananba847da2009-12-17 01:49:59 +000017
18#include <string>
19
20namespace llvm {
21
22class Target;
23class MemoryBuffer;
24
Chris Lattnera3dcfb12009-12-22 22:50:29 +000025class Disassembler {
Sean Callananba847da2009-12-17 01:49:59 +000026public:
27 static int disassemble(const Target &target,
28 const std::string &tripleString,
29 MemoryBuffer &buffer);
30};
31
32} // namespace llvm
33
34#endif