[llvm-commits] [llvm] r42769 - /llvm/trunk/lib/CodeGen/AsmPrinter.cpp

Dan Gohman djg at cray.com
Mon Oct 8 14:27:13 PDT 2007


Author: djg
Date: Mon Oct  8 16:27:12 2007
New Revision: 42769

URL: http://llvm.org/viewvc/llvm-project?rev=42769&view=rev
Log:
Call getFunctionNumber() instead of referencing FunctionNumber directly,
for consistency.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter.cpp?rev=42769&r1=42768&r2=42769&view=diff

==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter.cpp Mon Oct  8 16:27:12 2007
@@ -1209,7 +1209,7 @@
 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 << ':';





More information about the llvm-commits mailing list