Add -analyze support to postdomtree.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47680 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-02-27 18:38:29 +00:00
parent e416b7d407
commit e8ae2fe2a8
2 changed files with 8 additions and 1 deletions

View File

@ -508,7 +508,10 @@ public:
///
virtual void print(std::ostream &o, const Module* ) const {
o << "=============================--------------------------------\n";
o << "Inorder Dominator Tree: ";
if (this->isPostDominator())
o << "Inorder PostDominator Tree: ";
else
o << "Inorder Dominator Tree: ";
if (this->DFSInfoValid)
o << "DFSNumbers invalid: " << SlowQueries << " slow queries.";
o << "\n";

View File

@ -54,6 +54,10 @@ struct PostDominatorTree : public FunctionPass {
inline bool properlyDominates(BasicBlock* A, BasicBlock* B) const {
return DT->properlyDominates(A, B);
}
virtual void print(std::ostream &OS, const Module* M= 0) const {
DT->print(OS, M);
}
};