diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 12:57:14 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-02-20 12:57:14 +0000 | 
| commit | cf099d11218cb6f6c5cce947d6738e347f07fb12 (patch) | |
| tree | d2b61ce94e654cb01a254d2195259db5f9cc3f3c /lib/Analysis/PostDominators.cpp | |
| parent | 49011b52fcba02a6051957b84705159f52fae4e4 (diff) | |
Notes
Diffstat (limited to 'lib/Analysis/PostDominators.cpp')
| -rw-r--r-- | lib/Analysis/PostDominators.cpp | 10 | 
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Analysis/PostDominators.cpp b/lib/Analysis/PostDominators.cpp index cbe8d1867e4f..3f0deab9ea87 100644 --- a/lib/Analysis/PostDominators.cpp +++ b/lib/Analysis/PostDominators.cpp @@ -19,6 +19,7 @@  #include "llvm/Support/Debug.h"  #include "llvm/ADT/DepthFirstIterator.h"  #include "llvm/ADT/SetOperations.h" +#include "llvm/Assembly/Writer.h"  #include "llvm/Analysis/DominatorInternals.h"  using namespace llvm; @@ -29,7 +30,7 @@ using namespace llvm;  char PostDominatorTree::ID = 0;  char PostDominanceFrontier::ID = 0;  INITIALIZE_PASS(PostDominatorTree, "postdomtree", -                "Post-Dominator Tree Construction", true, true); +                "Post-Dominator Tree Construction", true, true)  bool PostDominatorTree::runOnFunction(Function &F) {    DT->recalculate(F); @@ -53,8 +54,11 @@ FunctionPass* llvm::createPostDomTree() {  //  PostDominanceFrontier Implementation  //===----------------------------------------------------------------------===// -INITIALIZE_PASS(PostDominanceFrontier, "postdomfrontier", -                "Post-Dominance Frontier Construction", true, true); +INITIALIZE_PASS_BEGIN(PostDominanceFrontier, "postdomfrontier", +                "Post-Dominance Frontier Construction", true, true) +INITIALIZE_PASS_DEPENDENCY(PostDominatorTree) +INITIALIZE_PASS_END(PostDominanceFrontier, "postdomfrontier", +                "Post-Dominance Frontier Construction", true, true)  const DominanceFrontier::DomSetType &  PostDominanceFrontier::calculate(const PostDominatorTree &DT,  | 
