From 4e107aa0b66a649168fcab94051a5ffe3067c7be Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 6 Oct 2006 21:28:17 +0000 Subject: print labels even if a MBB doesn't have a corresponding LLVM BB, just don't print the LLVM BB label. llvm-svn: 30775 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp') 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:"; -- cgit v1.2.3