diff options
author | Devang Patel <dpatel@apple.com> | 2007-06-12 17:30:56 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-06-12 17:30:56 +0000 |
commit | 2f9d2bcb19b9663043d71b06adcc6b874c868206 (patch) | |
tree | 4d789e150bd032dd54daf15f00c4fb748c5ecf18 | |
parent | dcf0c03ff74dd8813fb57338c21413819db02dcd (diff) | |
download | bcm5719-llvm-2f9d2bcb19b9663043d71b06adcc6b874c868206.tar.gz bcm5719-llvm-2f9d2bcb19b9663043d71b06adcc6b874c868206.zip |
Protect updateDFSNumbers()
llvm-svn: 37560
-rw-r--r-- | llvm/include/llvm/Analysis/Dominators.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/Dominators.h b/llvm/include/llvm/Analysis/Dominators.h index a7f5fcbaaec..b934d2f9040 100644 --- a/llvm/include/llvm/Analysis/Dominators.h +++ b/llvm/include/llvm/Analysis/Dominators.h @@ -131,6 +131,8 @@ protected: // Info - Collection of information used during the computation of idoms. std::map<BasicBlock*, InfoRec> Info; + void updateDFSNumbers(); + public: DominatorTreeBase(intptr_t ID, bool isPostDom) : DominatorBase(ID, isPostDom), DFSInfoValid(false), SlowQueries(0) {} @@ -191,13 +193,12 @@ protected: return IDom != 0; } - void updateDFSNumbers(); /// isReachableFromEntry - Return true if A is dominated by the entry /// block of the function containing it. const bool isReachableFromEntry(BasicBlock* A); - /// dominates - Returns true iff this dominates N. Note that this is not a + /// dominates - Returns true iff A dominates B. Note that this is not a /// constant time operation! /// inline bool dominates(const DomTreeNode *A, DomTreeNode *B) { |