aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-06 21:28:17 +0000
committerChris Lattner <sabre@nondot.org>2006-10-06 21:28:17 +0000
commitdb3ea6754bc314cb0ba5b4c2ae534b3b33633cf1 (patch)
tree9ac2a1cb75f4ff33f5e3b4fe9fdfea228713f582 /lib/CodeGen/MachineBasicBlock.cpp
parent935b1f8fce78d1a33251aec02dcd0108b8dd0366 (diff)
downloadexternal_llvm-db3ea6754bc314cb0ba5b4c2ae534b3b33633cf1.zip
external_llvm-db3ea6754bc314cb0ba5b4c2ae534b3b33633cf1.tar.gz
external_llvm-db3ea6754bc314cb0ba5b4c2ae534b3b33633cf1.tar.bz2
print labels even if a MBB doesn't have a corresponding LLVM BB, just don't
print the LLVM BB label. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30775 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index 318259d..ebd492c 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/lib/CodeGen/MachineBasicBlock.cpp
@@ -94,9 +94,10 @@ void MachineBasicBlock::print(std::ostream &OS) const {
}
const BasicBlock *LBB = getBasicBlock();
- if (LBB)
- OS << "\n" << LBB->getName() << " (" << (const void*)this
- << ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n";
+ OS << "\n";
+ if (LBB) OS << LBB->getName();
+ OS << " (" << (const void*)this
+ << ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n";
// Print the preds of this block according to the CFG.
if (!pred_empty()) {
OS << " Predecessors according to CFG:";