[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h

Devang Patel dpatel at apple.com
Mon Jun 11 22:49:53 PDT 2007



Changes in directory llvm/include/llvm/Analysis:

Dominators.h updated: 1.103 -> 1.104
---
Log message:

Make DFS number manipulation methods private.


---
Diffs of the changes:  (+5 -1)

 Dominators.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.103 llvm/include/llvm/Analysis/Dominators.h:1.104
--- llvm/include/llvm/Analysis/Dominators.h:1.103	Mon Jun 11 19:54:38 2007
+++ llvm/include/llvm/Analysis/Dominators.h	Tue Jun 12 00:49:31 2007
@@ -59,13 +59,16 @@
 
 //===----------------------------------------------------------------------===//
 // DomTreeNode - Dominator Tree Node
-
+class DominatorTreeBase;
+class PostDominatorTree;
 class DomTreeNode {
   BasicBlock *TheBB;
   DomTreeNode *IDom;
   std::vector<DomTreeNode*> Children;
   int DFSNumIn, DFSNumOut;
 
+  friend class DominatorTreeBase;
+  friend class PostDominatorTree;
 public:
   typedef std::vector<DomTreeNode*>::iterator iterator;
   typedef std::vector<DomTreeNode*>::const_iterator const_iterator;
@@ -84,6 +87,7 @@
   inline DomTreeNode *addChild(DomTreeNode *C) { Children.push_back(C); return C; }
   void setIDom(DomTreeNode *NewIDom);
 
+private:
   // Return true if this node is dominated by other. Use this only if DFS info is valid.
   bool DominatedBy(const DomTreeNode *other) const {
     return this->DFSNumIn >= other->DFSNumIn &&






More information about the llvm-commits mailing list