diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-06 21:28:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-06 21:28:17 +0000 |
commit | 4e107aa0b66a649168fcab94051a5ffe3067c7be (patch) | |
tree | 61c7e87af452c63a06a44cb74147c840835ec943 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | aa2a12f1a2fbcedef40814ac5fbc428467c2f91c (diff) | |
download | bcm5719-llvm-4e107aa0b66a649168fcab94051a5ffe3067c7be.tar.gz bcm5719-llvm-4e107aa0b66a649168fcab94051a5ffe3067c7be.zip |
print labels even if a MBB doesn't have a corresponding LLVM BB, just don't
print the LLVM BB label.
llvm-svn: 30775
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 318259d7f5f..ebd492c7ac2 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/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:"; |