Call getFunctionNumber() instead of referencing FunctionNumber directly,
authorDan Gohman <gohman@apple.com>
Mon, 8 Oct 2007 21:27:12 +0000 (21:27 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 8 Oct 2007 21:27:12 +0000 (21:27 +0000)
for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42769 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter.cpp

index 0ad0ec7b1f136cfc544943a9cfea75da1e04a2fa..5eb85cd21a5d49757742d4669b336f30ddfe4df3 100644 (file)
@@ -1209,7 +1209,7 @@ bool AsmPrinter::PrintAsmMemoryOperand(const MachineInstr *MI, unsigned OpNo,
 void AsmPrinter::printBasicBlockLabel(const MachineBasicBlock *MBB,
                                       bool printColon,
                                       bool printComment) const {
-  O << TAI->getPrivateGlobalPrefix() << "BB" << FunctionNumber << "_"
+  O << TAI->getPrivateGlobalPrefix() << "BB" << getFunctionNumber() << "_"
     << MBB->getNumber();
   if (printColon)
     O << ':';