diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-29 21:42:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-29 21:42:42 +0000 |
commit | 4d7a75a9e31a1b45e68b9cd3f50f18bd90dd0850 (patch) | |
tree | 28f2a5b598c2ca2fd178452dca166ce710fa7635 /lib/VMCore/Dominators.cpp | |
parent | 4d01892e36cc8ea4537b32dd71f11d767edeeef2 (diff) | |
download | external_llvm-4d7a75a9e31a1b45e68b9cd3f50f18bd90dd0850.zip external_llvm-4d7a75a9e31a1b45e68b9cd3f50f18bd90dd0850.tar.gz external_llvm-4d7a75a9e31a1b45e68b9cd3f50f18bd90dd0850.tar.bz2 |
Improve printing of dominator sets
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Dominators.cpp')
-rw-r--r-- | lib/VMCore/Dominators.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index e6f18ec..99fda80 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -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"; + } } //===----------------------------------------------------------------------===// |