Improve printing of dominator sets

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3976 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-09-29 21:42:42 +00:00
parent 4d01892e36
commit 4d7a75a9e3

View File

@ -114,10 +114,12 @@ static std::ostream &operator<<(std::ostream &o, const set<BasicBlock*> &BBs) {
}
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";
}
}
//===----------------------------------------------------------------------===//