[llvm] r183629 - Add a const version of findNearestCommonDominator to PostDom for convenience.
Benjamin Kramer
benny.kra at googlemail.com
Sun Jun 9 08:09:31 PDT 2013
Author: d0k
Date: Sun Jun 9 10:09:30 2013
New Revision: 183629
URL: http://llvm.org/viewvc/llvm-project?rev=183629&view=rev
Log:
Add a const version of findNearestCommonDominator to PostDom for convenience.
PR16283.
Modified:
llvm/trunk/include/llvm/Analysis/PostDominators.h
Modified: llvm/trunk/include/llvm/Analysis/PostDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/PostDominators.h?rev=183629&r1=183628&r2=183629&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/PostDominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/PostDominators.h Sun Jun 9 10:09:30 2013
@@ -74,6 +74,11 @@ struct PostDominatorTree : public Functi
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();
}
More information about the llvm-commits
mailing list