[llvm-commits] [llvm] r47680 - in /llvm/trunk/include/llvm/Analysis: Dominators.h PostDominators.h
Dan Gohman
gohman at apple.com
Wed Feb 27 10:38:30 PST 2008
Author: djg
Date: Wed Feb 27 12:38:29 2008
New Revision: 47680
URL: http://llvm.org/viewvc/llvm-project?rev=47680&view=rev
Log:
Add -analyze support to postdomtree.
Modified:
llvm/trunk/include/llvm/Analysis/Dominators.h
llvm/trunk/include/llvm/Analysis/PostDominators.h
Modified: llvm/trunk/include/llvm/Analysis/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Dominators.h?rev=47680&r1=47679&r2=47680&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Wed Feb 27 12:38:29 2008
@@ -508,7 +508,10 @@
///
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";
Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=47680&r1=47679&r2=47680&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Wed Feb 27 12:38:29 2008
@@ -54,6 +54,10 @@
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);
+ }
};
More information about the llvm-commits
mailing list