[llvm-commits] CVS: llvm/lib/CodeGen/MachineBasicBlock.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Mar 31 22:48:54 PST 2005
Changes in directory llvm/lib/CodeGen:
MachineBasicBlock.cpp updated: 1.23 -> 1.24
---
Log message:
print the machine CFG in the -print-machineinstrs dump
---
Diffs of the changes: (+8 -0)
MachineBasicBlock.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.23 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.24
--- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.23 Sat Jan 29 18:09:23 2005
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp Fri Apr 1 00:48:38 2005
@@ -100,6 +100,14 @@
OS << "\t";
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) {
More information about the llvm-commits
mailing list