summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.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
commitd051af755162b6ce222d69d63a8a4f5c16e5a0bd (patch)
treecd6391fdbdf5c022b336429371a2ee97323ae753 /llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
parent090c7e82dd72ffa6469111c4c860eec7adc319d9 (diff)
downloadbcm5719-llvm-d051af755162b6ce222d69d63a8a4f5c16e5a0bd.tar.gz
bcm5719-llvm-d051af755162b6ce222d69d63a8a4f5c16e5a0bd.zip
add a new MachineBasicBlock::getSymbol method, replacing
the AsmPrinter::GetMBBSymbol. llvm-svn: 94515
Diffstat (limited to 'llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp')
-rw-r--r--llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
index f843ee2b0d4..1b2dd48db8f 100644
--- a/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
+++ b/llvm/lib/Target/ARM/AsmPrinter/ARMMCInstLower.cpp
@@ -135,7 +135,7 @@ void ARMMCInstLower::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(Ctx), Ctx));
break;
case MachineOperand::MO_GlobalAddress:
MCOp = LowerSymbolOperand(MO, GetGlobalAddressSymbol(MO));
OpenPOWER on IntegriCloud