diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-06 00:46:36 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-06 00:46:36 +0000 |
commit | f082a9ae6b9e9545ee0648cb2e56e426e043eb5d (patch) | |
tree | 9b57d9319d3377b4ac85b6419df69816f8b66f17 /include/llvm/Analysis/Dominators.h | |
parent | 743f7e8839dc02f2e808e977803368c431279189 (diff) | |
download | external_llvm-f082a9ae6b9e9545ee0648cb2e56e426e043eb5d.zip external_llvm-f082a9ae6b9e9545ee0648cb2e56e426e043eb5d.tar.gz external_llvm-f082a9ae6b9e9545ee0648cb2e56e426e043eb5d.tar.bz2 |
Simplify class hierarchy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/Dominators.h')
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index ad82121..a0e8357 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -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); }; |