mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-24 04:56:51 +00:00
print the preds of each MBB
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a53115b4c2
commit
681764b20c
@ -97,6 +97,14 @@ void MachineBasicBlock::print(std::ostream &OS) const {
|
||||
if (LBB)
|
||||
OS << "\n" << LBB->getName() << " (" << (const void*)this
|
||||
<< ", LLVM BB @" << (const void*) LBB << "):\n";
|
||||
// Print the preds of this block according to the CFG.
|
||||
if (!pred_empty()) {
|
||||
OS << " Predecessors according to CFG:";
|
||||
for (const_pred_iterator PI = pred_begin(), E = pred_end(); PI != E; ++PI)
|
||||
OS << " " << *PI;
|
||||
OS << "\n";
|
||||
}
|
||||
|
||||
for (const_iterator I = begin(); I != end(); ++I) {
|
||||
OS << "\t";
|
||||
I->print(OS, &getParent()->getTarget());
|
||||
|
Loading…
Reference in New Issue
Block a user