Give MCInstPrinter a MCAsmInfo member, make X86ATTInstPrinter

be a MCInstPrinter.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2009-09-14 01:49:26 +00:00
parent 65b0b297db
commit c493fb2f4d
4 changed files with 23 additions and 16 deletions

View File

@@ -13,13 +13,17 @@
namespace llvm {
class MCInst;
class raw_ostream;
class MCAsmInfo;
/// MCInstPrinter - This is an instance of a target assembly language printer
/// that converts an MCInst to valid target assembly syntax.
class MCInstPrinter {
protected:
raw_ostream &O;
const MCAsmInfo &MAI;
public:
MCInstPrinter(raw_ostream &o) : O(o) {}
MCInstPrinter(raw_ostream &o, const MCAsmInfo &mai) : O(o), MAI(mai) {}
virtual ~MCInstPrinter();