Print function number instead of name
authorNate Begeman <natebegeman@mac.com>
Tue, 2 May 2006 17:36:46 +0000 (17:36 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 2 May 2006 17:36:46 +0000 (17:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28057 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 76a03dce95d53e0a9fe307b7db096a9a8ca19e4f..1175ac683738485ff49c9b613e0bbd29dc9408e4 100644 (file)
@@ -731,9 +731,8 @@ bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
 void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB,
                                       bool printColon,
                                       bool printComment) const {
-  O << PrivateGlobalPrefix << "LBB" 
-    << Mang->getValueName(MBB->getParent()->getFunction())
-    << "_" << MBB->getNumber();
+  O << PrivateGlobalPrefix << "BB" << FunctionNumber << "_"
+    << MBB->getNumber();
   if (printColon)
     O << ':';
   if (printComment)