Simplify class hierarchy.

llvm-svn: 37447
This commit is contained in:
Devang Patel 2007-06-06 00:46:36 +00:00
parent 506310d3dd
commit d7d3d71c7a
1 changed files with 1 additions and 3 deletions

View File

@ -63,7 +63,7 @@ public:
class DomTreeNode {
friend class DominatorTree;
friend struct PostDominatorTree;
friend class DominatorTreeBase;
BasicBlock *TheBB;
DomTreeNode *IDom;
std::vector<DomTreeNode*> Children;
@ -99,10 +99,8 @@ public:
return properlyDominates(N);
}
private:
inline DomTreeNode(BasicBlock *BB, DomTreeNode *iDom) : TheBB(BB), IDom(iDom) {}
inline DomTreeNode *addChild(DomTreeNode *C) { Children.push_back(C); return C; }
void setIDom(DomTreeNode *NewIDom);
};