Add findNearestCommonDominator() for PostDominators.
authorTobias Grosser <grosser@fim.uni-passau.de>
Sun, 7 Mar 2010 11:15:04 +0000 (11:15 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Sun, 7 Mar 2010 11:15:04 +0000 (11:15 +0000)
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

include/llvm/Analysis/PostDominators.h

index 3681cc01f3b7ebb70662370ef3c880c1f3da667b..5552017d91800e384b4eb43efd2c445303673814 100644 (file)
@@ -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();
   }