[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 21 12:09:44 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PowerPCAsmPrinter.cpp updated: 1.86 -> 1.87
---
Log message:
Don't print out the MBB label for the entry mbb
---
Diffs of the changes: (+6 -2)
PowerPCAsmPrinter.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.86 llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.87
--- llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp:1.86 Fri Aug 5 17:05:03 2005
+++ llvm/lib/Target/PowerPC/PowerPCAsmPrinter.cpp Sun Aug 21 14:09:33 2005
@@ -400,8 +400,12 @@
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
I != E; ++I) {
// Print a label for the basic block.
- O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
- << CommentString << " " << I->getBasicBlock()->getName() << "\n";
+ if (I != MF.begin()) {
+ O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t";
+ if (!I->getBasicBlock()->getName().empty())
+ O << CommentString << " " << I->getBasicBlock()->getName();
+ 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