aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/Dominators.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-06 00:46:36 +0000
committerDevang Patel <dpatel@apple.com>2007-06-06 00:46:36 +0000
commitf082a9ae6b9e9545ee0648cb2e56e426e043eb5d (patch)
tree9b57d9319d3377b4ac85b6419df69816f8b66f17 /include/llvm/Analysis/Dominators.h
parent743f7e8839dc02f2e808e977803368c431279189 (diff)
downloadexternal_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.h4
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);
};