Add machine independant printer interface

llvm-svn: 4729
This commit is contained in:
Chris Lattner 2002-11-17 22:54:55 +00:00
parent 9289d7d693
commit 4a22fb1fe9
2 changed files with 12 additions and 0 deletions

View File

@ -94,6 +94,12 @@ public:
return desc[opCode];
}
/// print - Print out the specified machine instruction in the appropriate
/// target specific assembly language. If this method is not overridden, the
/// default implementation uses the crummy machine independant printer.
///
virtual void print(const MachineInstr *MI, std::ostream &O) const;
const char *getName(MachineOpCode opCode) const {
return get(opCode).Name;
}

View File

@ -94,6 +94,12 @@ public:
return desc[opCode];
}
/// print - Print out the specified machine instruction in the appropriate
/// target specific assembly language. If this method is not overridden, the
/// default implementation uses the crummy machine independant printer.
///
virtual void print(const MachineInstr *MI, std::ostream &O) const;
const char *getName(MachineOpCode opCode) const {
return get(opCode).Name;
}