diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-19 19:59:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-19 19:59:05 +0000 |
commit | 6a71afaec18e5bcbdb838a5e094f51e9f8ea864d (patch) | |
tree | d1a2649d7c47ed13b759899718c077112cfeb84c | |
parent | fd60382e750c50ddb55485bf2cfcdf8dcbbcfd6b (diff) | |
download | external_llvm-6a71afaec18e5bcbdb838a5e094f51e9f8ea864d.zip external_llvm-6a71afaec18e5bcbdb838a5e094f51e9f8ea864d.tar.gz external_llvm-6a71afaec18e5bcbdb838a5e094f51e9f8ea864d.tar.bz2 |
wire up ARM's printMCInst method. Now llvm-mc should be able to produce
"something" when printing MCInsts, it will just be missing all the
operand info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84528 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index 6d4a05f..9c8c272 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -17,6 +17,7 @@ #include "ARMAddressingModes.h" #include "ARMConstantPoolValue.h" #include "ARMMachineFunctionInfo.h" +#include "ARMInstPrinter.h" #include "llvm/Constants.h" #include "llvm/Module.h" #include "llvm/Assembly/Writer.h" @@ -73,6 +74,10 @@ namespace { virtual const char *getPassName() const { return "ARM Assembly Printer"; } + + void printMCInst(const MCInst *MI) { + ARMInstPrinter(O, *MAI).printInstruction(MI); + } void printOperand(const MachineInstr *MI, int OpNum, const char *Modifier = 0); |