diff options
| author | Dan Gohman <gohman@apple.com> | 2009-10-06 17:38:38 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-10-06 17:38:38 +0000 |
| commit | 10d3dc569b2afe1ba9dccf6650b131b87f9be4ad (patch) | |
| tree | 3e110925ac5ddd5d4e2d7e4c3c101847fef91538 /llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp | |
| parent | 92e3a06623077fceb781f66acfc691b26642c376 (diff) | |
| download | bcm5719-llvm-10d3dc569b2afe1ba9dccf6650b131b87f9be4ad.tar.gz bcm5719-llvm-10d3dc569b2afe1ba9dccf6650b131b87f9be4ad.zip | |
Instead of printing unnecessary basic block labels as labels in
verbose-asm mode, print comments instead. This eliminates a non-comment
difference between verbose-asm mode and non-verbose-asm mode.
Also, factor out the relevant code out of all the targets and into
target-independent code.
llvm-svn: 83392
Diffstat (limited to 'llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp')
| -rw-r--r-- | llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp b/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp index b6d268d5f7a..ad40fd4776d 100644 --- a/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp +++ b/llvm/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp @@ -124,13 +124,7 @@ bool MSP430AsmPrinter::runOnMachineFunction(MachineFunction &MF) { for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); I != E; ++I) { // Print a label for the basic block. - if (!VerboseAsm && (I->pred_empty() || I->isOnlyReachableByFallthrough())) { - // This is an entry block or a block that's only reachable via a - // fallthrough edge. In non-VerboseAsm mode, don't print the label. - } else { - EmitBasicBlockStart(I); - O << '\n'; - } + EmitBasicBlockStart(I); for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end(); II != E; ++II) |

