mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
print the machine CFG in the -print-machineinstrs dump
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -100,6 +100,14 @@ void MachineBasicBlock::print(std::ostream &OS) const {
|
|||||||
OS << "\t";
|
OS << "\t";
|
||||||
I->print(OS, &getParent()->getTarget());
|
I->print(OS, &getParent()->getTarget());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print the successors of this block according to the CFG.
|
||||||
|
if (!succ_empty()) {
|
||||||
|
OS << " Successors according to CFG:";
|
||||||
|
for (const_succ_iterator SI = succ_begin(), E = succ_end(); SI != E; ++SI)
|
||||||
|
OS << " " << *SI;
|
||||||
|
OS << "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MachineBasicBlock::addSuccessor(MachineBasicBlock *succ) {
|
void MachineBasicBlock::addSuccessor(MachineBasicBlock *succ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user