diff options
author | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-01-11 22:22:32 +0000 |
---|---|---|
committer | Tobias Grosser <grosser@fim.uni-passau.de> | 2010-01-11 22:22:32 +0000 |
commit | af4421d6efff5a1c91e7669933738487c609238b (patch) | |
tree | 4478ecc59e7f0d3d60093824fddd240c14382dca | |
parent | 199c4240feedec2f9dbd0d4c4c0a32fa46e50270 (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.h | 4 |
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); } |