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 | 62892a8680f8506a62594a8f4f39702b769bcd8c (patch) | |
| tree | 7b4c5d5ea68deac5fbb919837940c2171a163505 | |
| parent | 28dc6c12c381a5c184ca85d3670144214ba313cc (diff) | |
| download | bcm5719-llvm-62892a8680f8506a62594a8f4f39702b769bcd8c.tar.gz bcm5719-llvm-62892a8680f8506a62594a8f4f39702b769bcd8c.zip | |
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.
llvm-svn: 97915
| -rw-r--r-- | llvm/include/llvm/Analysis/PostDominators.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PostDominators.h b/llvm/include/llvm/Analysis/PostDominators.h index 3681cc01f3b..5552017d918 100644 --- a/llvm/include/llvm/Analysis/PostDominators.h +++ b/llvm/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(); } |

