summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-12 20:56:56 +0000
committerDan Gohman <gohman@apple.com>2009-08-12 20:56:56 +0000
commit1c0e13fe66192e382751a43d3f51d9a9f106cc45 (patch)
treec0d147fd650cc27febab4c882d3c76e2bba9eaaa /llvm/lib
parent12dad639b55d17568b4d4abd373a890761449c8a (diff)
downloadbcm5719-llvm-1c0e13fe66192e382751a43d3f51d9a9f106cc45.tar.gz
bcm5719-llvm-1c0e13fe66192e382751a43d3f51d9a9f106cc45.zip
Use WriteAsOperand to print BasicBlock names.
llvm-svn: 78838
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index f0aa304a8bb..6238d16f37f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1639,8 +1639,8 @@ void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB,
if (const BasicBlock *BB = MBB->getBasicBlock())
if (BB->hasName()) {
O.PadToColumn(TAI->getCommentColumn(), 1);
- O << TAI->getCommentString() << ' '
- << MBB->getBasicBlock()->getName();
+ O << TAI->getCommentString() << ' ';
+ WriteAsOperand(O, BB, /*PrintType=*/false);
}
if (printColon)
OpenPOWER on IntegriCloud