OSDN Git Service

print labels even if a MBB doesn't have a corresponding LLVM BB, just don't
authorChris Lattner <sabre@nondot.org>
Fri, 6 Oct 2006 21:28:17 +0000 (21:28 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 6 Oct 2006 21:28:17 +0000 (21:28 +0000)
print the LLVM BB label.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30775 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBasicBlock.cpp

index 318259d..ebd492c 100644 (file)
@@ -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:";