[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp

Nate Begeman natebegeman at mac.com
Mon May 1 22:37:49 PDT 2006



Changes in directory llvm/lib/Target/Alpha:

AlphaAsmPrinter.cpp updated: 1.34 -> 1.35
---
Log message:

Extend printBasicBlockLabel a bit so that it can be used to print all 
basic block labels, consolidating the code to do so in one place for each
target.


---
Diffs of the changes:  (+2 -3)

 AlphaAsmPrinter.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.34 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.35
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.34	Sat Apr 22 13:53:45 2006
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp	Tue May  2 00:37:32 2006
@@ -191,9 +191,8 @@
   // Print out code for the function.
   for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
        I != E; ++I) {
-    // Print a label for the basic block.
-    O << PrivateGlobalPrefix << "LBB" << CurrentFnName << "_" << I->getNumber()
-      << ":\t" << CommentString << " " << I->getBasicBlock()->getName() << "\n";
+    printBasicBlockLabel(I, true);
+    O << '\n';
     for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
          II != E; ++II) {
       // Print the assembly for the instruction.






More information about the llvm-commits mailing list