Add getNode() to post dominators.
authorTobias Grosser <grosser@fim.uni-passau.de>
Mon, 11 Jan 2010 22:22:32 +0000 (22:22 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Mon, 11 Jan 2010 22:22:32 +0000 (22:22 +0000)
Implement the same interface as already available for dominators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93194 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/PostDominators.h

index ea14b2da9ce97b5761ba2165fbe4192454ec7a20..71cf843d32f94d44b67483c58ae96f2e61967f2a 100644 (file)
@@ -49,6 +49,10 @@ struct PostDominatorTree : public FunctionPass {
     return DT->getNode(BB);
   }
   
+  inline DomTreeNode *getNode(BasicBlock *BB) const {
+    return DT->getNode(BB);
+  }
+
   inline bool dominates(DomTreeNode* A, DomTreeNode* B) const {
     return DT->dominates(A, B);
   }