diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-03-07 11:15:04 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-03-07 11:15:04 +0000 |
commit | 8f9db4c1d58114f54b585251f5bf61a498613b7c (patch) | |
tree | 5c79b73f645fbb8507ff0e2b94a4ff2018213836 /include | |
parent | acee647b13d6e3e92cdbfe9657622a3daa2a6da1 (diff) | |
download | external_llvm-8f9db4c1d58114f54b585251f5bf61a498613b7c.zip external_llvm-8f9db4c1d58114f54b585251f5bf61a498613b7c.tar.gz external_llvm-8f9db4c1d58114f54b585251f5bf61a498613b7c.tar.bz2 |
Add findNearestCommonDominator() for PostDominators.
Add a missing interface to be able to call findNearestCommonDominator
for a PostDominanceTree. The function itself is already implemented in
DominatorTreeBase. The interface however was only added to the
DominatorTree class, but not the PostDominatorClass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 3681cc0..5552017 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -69,6 +69,10 @@ struct PostDominatorTree : public FunctionPass { return DT->properlyDominates(A, B); } + inline BasicBlock *findNearestCommonDominator(BasicBlock *A, BasicBlock *B) { + return DT->findNearestCommonDominator(A, B); + } + virtual void releaseMemory() { DT->releaseMemory(); } |