move header
[oota-llvm.git] / include / llvm / Analysis / PostDominators.h
index 39b26d707ff514d60394d982da572c4439aeee9d..4d8d140373eabd5790cb039ee0d67d3d66c2a899 100644 (file)
@@ -32,22 +32,6 @@ struct ImmediatePostDominators : public ImmediateDominatorsBase {
   }
   
 private:
-    struct InfoRec {
-      unsigned Semi;
-      unsigned Size;
-      BasicBlock *Label, *Parent, *Child, *Ancestor;
-      
-      std::vector<BasicBlock*> Bucket;
-      
-      InfoRec() : Semi(0), Size(0), Label(0), Parent(0), Child(0), Ancestor(0){}
-    };
-  
-  // Vertex - Map the DFS number to the BasicBlock*
-  std::vector<BasicBlock*> Vertex;
-  
-  // Info - Collection of information used during the computation of idoms.
-  std::map<BasicBlock*, InfoRec> Info;
-  
   unsigned DFSPass(BasicBlock *V, InfoRec &VInfo, unsigned N);
   void Compress(BasicBlock *V, InfoRec &VInfo);
   BasicBlock *Eval(BasicBlock *v);
@@ -144,18 +128,14 @@ struct PostDominanceFrontier : public DominanceFrontierBase {
     AU.addRequired<PostDominatorTree>();
   }
 
-  // stub - dummy function, just ignore it
-  static void stub();
-
 private:
   const DomSetType &calculate(const PostDominatorTree &DT,
                               const DominatorTree::Node *Node);
 };
 
-// Make sure that any clients of this file link in PostDominators.cpp
-static IncludeFile
-POST_DOMINATOR_INCLUDE_FILE((void*)&PostDominanceFrontier::stub);
-
 } // End llvm namespace
 
+// Make sure that any clients of this file link in PostDominators.cpp
+FORCE_DEFINING_FILE_TO_BE_LINKED(PostDominanceFrontier)
+
 #endif