diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-09 15:09:30 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-06-09 15:09:30 +0000 |
commit | 3ade978551927cfb0e6dd4e26f0768908b1898bb (patch) | |
tree | 2680bf490acdec0b28c8ed6d5b5a9f328fb2a389 /include | |
parent | c8ecf5308266acb7b11ce33be0a1ce434858b9ad (diff) | |
download | external_llvm-3ade978551927cfb0e6dd4e26f0768908b1898bb.zip external_llvm-3ade978551927cfb0e6dd4e26f0768908b1898bb.tar.gz external_llvm-3ade978551927cfb0e6dd4e26f0768908b1898bb.tar.bz2 |
Add a const version of findNearestCommonDominator to PostDom for convenience.
PR16283.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index d082297..88ebab4 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -74,6 +74,11 @@ struct PostDominatorTree : public FunctionPass { return DT->findNearestCommonDominator(A, B); } + inline const BasicBlock *findNearestCommonDominator(const BasicBlock *A, + const BasicBlock *B) { + return DT->findNearestCommonDominator(A, B); + } + virtual void releaseMemory() { DT->releaseMemory(); } |