aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Blackfin
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
commitc6f802dd7f346ac5a44bbdc57d264ed928fe1e7c (patch)
tree7599976799333eaa2f0e542f176426f1913960e1 /lib/Target/Blackfin
parent7f5f33b5ea2e756e9dd3df83c8924304ac317e4b (diff)
downloadexternal_llvm-c6f802dd7f346ac5a44bbdc57d264ed928fe1e7c.zip
external_llvm-c6f802dd7f346ac5a44bbdc57d264ed928fe1e7c.tar.gz
external_llvm-c6f802dd7f346ac5a44bbdc57d264ed928fe1e7c.tar.bz2
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/Blackfin')
-rw-r--r--lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp b/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
index b37e625..62e28a4 100644
--- a/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
+++ b/lib/Target/Blackfin/AsmPrinter/BlackfinAsmPrinter.cpp
@@ -25,6 +25,7 @@
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCAsmInfo.h"
+#include "llvm/MC/MCSymbol.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Target/TargetRegistry.h"
@@ -176,7 +177,7 @@ void BlackfinAsmPrinter::printOperand(const MachineInstr *MI, int opNum) {
O << MO.getImm();
break;
case MachineOperand::MO_MachineBasicBlock:
- printBasicBlockLabel(MO.getMBB(), false, false, false);
+ GetMBBSymbol(MO.getMBB()->getNumber())->print(O, MAI);
return;
case MachineOperand::MO_GlobalAddress:
O << Mang->getMangledName(MO.getGlobal());