summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/AsmPrinter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-13 17:14:04 +0000
committerChris Lattner <sabre@nondot.org>2009-09-13 17:14:04 +0000
commit325d3dcfe4d5efc91db0f59b20a72a11dea024ed (patch)
tree7599976799333eaa2f0e542f176426f1913960e1 /lib/Target/MSP430/AsmPrinter
parent8bb233b6b7ea80f45d0c37f3dba25c3f8afe18c4 (diff)
downloadllvm-325d3dcfe4d5efc91db0f59b20a72a11dea024ed.tar.gz
llvm-325d3dcfe4d5efc91db0f59b20a72a11dea024ed.tar.bz2
llvm-325d3dcfe4d5efc91db0f59b20a72a11dea024ed.tar.xz
convert some uses of printBasicBlockLabel to use GetMBBSymbol
instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/AsmPrinter')
-rw-r--r--lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp b/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
index dc2f31a2bb..50a17549c1 100644
--- a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
+++ b/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
@@ -27,6 +27,7 @@
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/MC/MCStreamer.h"
+#include "llvm/MC/MCSymbol.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetRegistry.h"
@@ -170,7 +171,7 @@ void MSP430AsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
O << MO.getImm();
return;
case MachineOperand::MO_MachineBasicBlock:
- printBasicBlockLabel(MO.getMBB());
+ GetMBBSymbol(MO.getMBB()->getNumber())->print(O, MAI);
return;
case MachineOperand::MO_GlobalAddress: {
bool isMemOp = Modifier && !strcmp(Modifier, "mem");