From af4421d6efff5a1c91e7669933738487c609238b Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Mon, 11 Jan 2010 22:22:32 +0000 Subject: [PATCH] Add getNode() to post dominators. 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index ea14b2da9ce..71cf843d32f 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -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); }