1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

print labels even if a MBB doesn't have a corresponding LLVM BB, just don't

print the LLVM BB label.

llvm-svn: 30775
This commit is contained in:
Chris Lattner 2006-10-06 21:28:17 +00:00
parent a96c205e12
commit ad60994822

View 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:";