From: Tobias Grosser Date: Mon, 11 Jan 2010 22:22:32 +0000 (+0000) Subject: Add getNode() to post dominators. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=af4421d6efff5a1c91e7669933738487c609238b;p=oota-llvm.git 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 --- 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); }