[llvm-commits] [llvm] r84528 - /llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

Chris Lattner sabre at nondot.org
Mon Oct 19 12:59:05 PDT 2009


Author: lattner
Date: Mon Oct 19 14:59:05 2009
New Revision: 84528

URL: http://llvm.org/viewvc/llvm-project?rev=84528&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

Modified: llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp?rev=84528&r1=84527&r2=84528&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp Mon Oct 19 14:59:05 2009
@@ -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 @@
     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);





More information about the llvm-commits mailing list