Chris Lattner | a3dcfb1 | 2009-12-22 22:50:29 +0000 | [diff] [blame] | 1 | //===- Disassembler.h - Text File Disassembler ----------------------------===// |
Sean Callanan | ba847da | 2009-12-17 01:49:59 +0000 | [diff] [blame] | 2 | // |
| 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 Lattner | a3dcfb1 | 2009-12-22 22:50:29 +0000 | [diff] [blame] | 15 | #ifndef DISASSEMBLER_H |
| 16 | #define DISASSEMBLER_H |
Sean Callanan | ba847da | 2009-12-17 01:49:59 +0000 | [diff] [blame] | 17 | |
| 18 | #include <string> |
| 19 | |
| 20 | namespace llvm { |
| 21 | |
| 22 | class Target; |
| 23 | class MemoryBuffer; |
Dan Gohman | d5826a3 | 2010-08-20 01:07:01 +0000 | [diff] [blame] | 24 | class raw_ostream; |
Sean Callanan | ba847da | 2009-12-17 01:49:59 +0000 | [diff] [blame] | 25 | |
Chris Lattner | a3dcfb1 | 2009-12-22 22:50:29 +0000 | [diff] [blame] | 26 | class Disassembler { |
Sean Callanan | ba847da | 2009-12-17 01:49:59 +0000 | [diff] [blame] | 27 | public: |
| 28 | static int disassemble(const Target &target, |
| 29 | const std::string &tripleString, |
Dan Gohman | d5826a3 | 2010-08-20 01:07:01 +0000 | [diff] [blame] | 30 | MemoryBuffer &buffer, |
| 31 | raw_ostream &Out); |
Sean Callanan | 668b154 | 2010-04-12 19:43:00 +0000 | [diff] [blame] | 32 | |
| 33 | static int disassembleEnhanced(const std::string &tripleString, |
Dan Gohman | d5826a3 | 2010-08-20 01:07:01 +0000 | [diff] [blame] | 34 | MemoryBuffer &buffer, |
| 35 | raw_ostream &Out); |
Sean Callanan | ba847da | 2009-12-17 01:49:59 +0000 | [diff] [blame] | 36 | }; |
| 37 | |
| 38 | } // namespace llvm |
| 39 | |
| 40 | #endif |