1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add getNode() to post dominators.

Implement the same interface as already available for dominators.

llvm-svn: 93194
This commit is contained in:
Tobias Grosser 2010-01-11 22:22:32 +00:00
parent bd938ebc90
commit 5b16958edc

View 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);
}