[llvm-commits] [llvm] r84702 - /llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Tue Oct 20 17:10:47 PDT 2009
Author: asl
Date: Tue Oct 20 19:10:47 2009
New Revision: 84702
URL: http://llvm.org/viewvc/llvm-project?rev=84702&view=rev
Log:
Wire up MSP430 printMCInst() method
Modified:
llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
Modified: llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp?rev=84702&r1=84701&r2=84702&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp Tue Oct 20 19:10:47 2009
@@ -15,6 +15,7 @@
#define DEBUG_TYPE "asm-printer"
#include "MSP430.h"
#include "MSP430InstrInfo.h"
+#include "MSP430InstPrinter.h"
#include "MSP430MCAsmInfo.h"
#include "MSP430TargetMachine.h"
#include "llvm/Constants.h"
@@ -52,6 +53,9 @@
return "MSP430 Assembly Printer";
}
+ void printMCInst(const MCInst *MI) {
+ MSP430InstPrinter(O, *MAI).printInstruction(MI);
+ }
void printOperand(const MachineInstr *MI, int OpNum,
const char* Modifier = 0);
void printSrcMemOperand(const MachineInstr *MI, int OpNum,
More information about the llvm-commits
mailing list