summaryrefslogtreecommitdiff
path: root/lib/Target/MSP430/AsmPrinter
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-06 17:38:38 +0000
committerDan Gohman <gohman@apple.com>2009-10-06 17:38:38 +0000
commite3cc3f3c84abfdf8eb3bd19dfa806ceea49f15d6 (patch)
treecf632431a5862f4e5b082c6fb51c706037c27299 /lib/Target/MSP430/AsmPrinter
parent6cf4963cdc33f06031ebf86e0606afa4b79ccde5 (diff)
downloadllvm-e3cc3f3c84abfdf8eb3bd19dfa806ceea49f15d6.tar.gz
llvm-e3cc3f3c84abfdf8eb3bd19dfa806ceea49f15d6.tar.bz2
llvm-e3cc3f3c84abfdf8eb3bd19dfa806ceea49f15d6.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MSP430/AsmPrinter')
-rw-r--r--lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp b/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
index b6d268d5f7..ad40fd4776 100644
--- a/lib/Target/MSP430/AsmPrinter/MSP430AsmPrinter.cpp
+++ b/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)