Protect updateDFSNumbers()
authorDevang Patel <dpatel@apple.com>
Tue, 12 Jun 2007 17:30:56 +0000 (17:30 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 12 Jun 2007 17:30:56 +0000 (17:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37560 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h

index a7f5fcbaaec3b233dad988f31ab8ae1963f8c8f2..b934d2f9040f070a6ed07f388403ab4d9bf4f1c2 100644 (file)
@@ -131,6 +131,8 @@ protected:
   // Info - Collection of information used during the computation of idoms.
   std::map<BasicBlock*, InfoRec> Info;
 
+  void updateDFSNumbers();
+
   public:
   DominatorTreeBase(intptr_t ID, bool isPostDom) 
     : DominatorBase(ID, isPostDom), DFSInfoValid(false), SlowQueries(0) {}
@@ -191,13 +193,12 @@ protected:
     return IDom != 0;
   }
 
-  void updateDFSNumbers();  
 
   /// isReachableFromEntry - Return true if A is dominated by the entry
   /// block of the function containing it.
   const bool isReachableFromEntry(BasicBlock* A);
   
-  /// dominates - Returns true iff this dominates N.  Note that this is not a
+  /// dominates - Returns true iff A dominates B.  Note that this is not a
   /// constant time operation!
   ///
   inline bool dominates(const DomTreeNode *A, DomTreeNode *B) {