aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-01-11 22:22:32 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-01-11 22:22:32 +0000
commitaf4421d6efff5a1c91e7669933738487c609238b (patch)
tree4478ecc59e7f0d3d60093824fddd240c14382dca
parent199c4240feedec2f9dbd0d4c4c0a32fa46e50270 (diff)
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
-rw-r--r--include/llvm/Analysis/PostDominators.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index ea14b2da9c..71cf843d32 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);
}