add a new MCInstPrinter class, move the (trivial) MCDisassmbler ctor inline.
[oota-llvm.git] / include / llvm / MC / MCInstPrinter.h
1 //===-- MCInstPrinter.h - Convert an MCInst to target assembly syntax -----===//
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 #ifndef LLVM_MC_MCINSTPRINTER_H
11 #define LLVM_MC_MCINSTPRINTER_H
12
13 namespace llvm {
14 class MCInst;
15 class raw_ostream;
16   
17 /// MCInstPrinter - This is an instance of a target assembly language printer
18 /// that converts an MCInst to valid target assembly syntax.
19 class MCInstPrinter {
20   raw_ostream &O;
21 public:
22   MCInstPrinter(raw_ostream &o) : O(o) {}
23   
24   virtual ~MCInstPrinter();
25   
26   /// printInst - Print the specified MCInst to the current raw_ostream.
27   ///
28   virtual void printInst(const MCInst *MI) = 0;
29 };
30   
31 } // namespace llvm
32
33 #endif