[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 29 16:44:01 PDT 2002
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.39 -> 1.40
---
Log message:
Improve printing of dominator sets
---
Diffs of the changes:
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.39 llvm/lib/VMCore/Dominators.cpp:1.40
--- llvm/lib/VMCore/Dominators.cpp:1.39 Thu Sep 26 11:14:41 2002
+++ llvm/lib/VMCore/Dominators.cpp Sun Sep 29 16:42:42 2002
@@ -114,10 +114,12 @@
}
void DominatorSetBase::print(std::ostream &o) const {
- for (const_iterator I = begin(), E = end(); I != E; ++I)
+ for (const_iterator I = begin(), E = end(); I != E; ++I) {
o << "=============================--------------------------------\n"
- << "\nDominator Set For Basic Block\n" << I->first
- << "-------------------------------\n" << I->second << "\n";
+ << "\nDominator Set For Basic Block: ";
+ WriteAsOperand(o, I->first, false);
+ o << "\n-------------------------------\n" << I->second << "\n";
+ }
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list