forked from OSchip/llvm-project
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:
parent
aa2a12f1a2
commit
4e107aa0b6
|
@ -94,9 +94,10 @@ void MachineBasicBlock::print(std::ostream &OS) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
const BasicBlock *LBB = getBasicBlock();
|
const BasicBlock *LBB = getBasicBlock();
|
||||||
if (LBB)
|
OS << "\n";
|
||||||
OS << "\n" << LBB->getName() << " (" << (const void*)this
|
if (LBB) OS << LBB->getName();
|
||||||
<< ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n";
|
OS << " (" << (const void*)this
|
||||||
|
<< ", LLVM BB @" << (const void*) LBB << ", ID#" << getNumber()<< "):\n";
|
||||||
// Print the preds of this block according to the CFG.
|
// Print the preds of this block according to the CFG.
|
||||||
if (!pred_empty()) {
|
if (!pred_empty()) {
|
||||||
OS << " Predecessors according to CFG:";
|
OS << " Predecessors according to CFG:";
|
||||||
|
|
Loading…
Reference in New Issue