aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-21 19:09:33 +0000
committerChris Lattner <sabre@nondot.org>2005-08-21 19:09:33 +0000
commit1db1adbdee847906b4541ae582dc5be001fe2214 (patch)
tree50cfccc7c4a48efa2956128a38a0aa598db6e5e2
parentf913d3f91c8e72000a41dd58e0118a1763fe6d7e (diff)
Don't print out the MBB label for the entry mbb
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22953 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 9ef26a0de9..840d7383fc 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -400,8 +400,12 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
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.