summaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-06-12 17:30:56 +0000
committerDevang Patel <dpatel@apple.com>2007-06-12 17:30:56 +0000
commit6857e366f57dbf6a83c3fdfbd643dba5de305065 (patch)
treef15d9e21be220111b215a4df0d51fd47963d3de1 /include/llvm/Analysis
parent5fd306bf0d75b8dde7e2ff5e42e15e96d5cdfcfe (diff)
downloadexternal_llvm-6857e366f57dbf6a83c3fdfbd643dba5de305065.zip
external_llvm-6857e366f57dbf6a83c3fdfbd643dba5de305065.tar.gz
external_llvm-6857e366f57dbf6a83c3fdfbd643dba5de305065.tar.bz2
Protect updateDFSNumbers()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37560 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/Dominators.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h
index a7f5fcb..b934d2f 100644
--- a/include/llvm/Analysis/Dominators.h
+++ b/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) {