Add -analyze support to postdomtree.

llvm-svn: 47680
This commit is contained in:
Dan Gohman 2008-02-27 18:38:29 +00:00
parent fd8352c2b9
commit 61377a3dc8
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);
}
};