summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-10-21 00:10:47 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-10-21 00:10:47 +0000
commitdaaa2f0c31d193423c9fbf420cc88604fe7d2a13 (patch)
treeb21cc1f7c2169a4f6b8fe4c82228d78e44a28c09 /llvm/lib
parentb6e2e4fd50b53b45c275c58d0cc1970a7053aab3 (diff)
downloadbcm5719-llvm-daaa2f0c31d193423c9fbf420cc88604fe7d2a13.tar.gz
bcm5719-llvm-daaa2f0c31d193423c9fbf420cc88604fe7d2a13.zip
Wire up MSP430 printMCInst() method
llvm-svn: 84702
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp b/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
index 852019febf5..4a32bebde53 100644
--- a/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
+++ b/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
@@ -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 @@ namespace {
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,
OpenPOWER on IntegriCloud