mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 14:36:34 +00:00
Add findNearestCommonDominator() for PostDominators.
Add a missing interface to be able to call findNearestCommonDominator for a PostDominanceTree. The function itself is already implemented in DominatorTreeBase. The interface however was only added to the DominatorTree class, but not the PostDominatorClass. llvm-svn: 97915
This commit is contained in:
parent
f3ee582f23
commit
3d040891b0
@ -69,6 +69,10 @@ struct PostDominatorTree : public FunctionPass {
|
|||||||
return DT->properlyDominates(A, B);
|
return DT->properlyDominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline BasicBlock *findNearestCommonDominator(BasicBlock *A, BasicBlock *B) {
|
||||||
|
return DT->findNearestCommonDominator(A, B);
|
||||||
|
}
|
||||||
|
|
||||||
virtual void releaseMemory() {
|
virtual void releaseMemory() {
|
||||||
DT->releaseMemory();
|
DT->releaseMemory();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user