1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Make DFS number manipulation methods private.

llvm-svn: 37553
This commit is contained in:
Devang Patel 2007-06-12 05:49:31 +00:00
parent 6947941199
commit 73ae5acfd0

View File

@ -59,13 +59,16 @@ public:
//===----------------------------------------------------------------------===//
// 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 @@ public:
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 &&