aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 04:55:51 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 04:55:51 +0000
commit84d5ca9524a5d23f88083d0663ee99dca739df21 (patch)
treed8a059d88a780969f42d32dc19b89e65d2458971 /lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
parent408dcd3ebe187e2c098928caf9c4ce8928a30ba0 (diff)
downloadexternal_llvm-84d5ca9524a5d23f88083d0663ee99dca739df21.tar.gz
external_llvm-84d5ca9524a5d23f88083d0663ee99dca739df21.tar.bz2
external_llvm-84d5ca9524a5d23f88083d0663ee99dca739df21.zip
add a new MachineBasicBlock::getSymbol method, replacing
the AsmPrinter::GetMBBSymbol. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp')
-rw-r--r--lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp b/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
index e1f80b7d84..4eb7f3d9cf 100644
--- a/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
+++ b/lib/Target/MSP430/AsmPrinter/MSP430MCInstLower.cpp
@@ -116,7 +116,7 @@ void MSP430MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
break;
case MachineOperand::MO_MachineBasicBlock:
MCOp = MCOperand::CreateExpr(MCSymbolRefExpr::Create(
- Printer.GetMBBSymbol(MO.getMBB()->getNumber()), Ctx));
+ MO.getMBB()->getSymbol(Printer.OutContext), Ctx));
break;
case MachineOperand::MO_GlobalAddress:
MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO));