mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-12 07:37:34 +00:00
Add dominates and releaseMemory member functions to PostDominatorTree.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82904 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f37cfed791
commit
22bf8f21b4
@ -49,6 +49,14 @@ struct PostDominatorTree : public FunctionPass {
|
||||
return DT->getNode(BB);
|
||||
}
|
||||
|
||||
inline bool dominates(DomTreeNode* A, DomTreeNode* B) const {
|
||||
return DT->dominates(A, B);
|
||||
}
|
||||
|
||||
inline bool dominates(const BasicBlock* A, const BasicBlock* B) const {
|
||||
return DT->dominates(A, B);
|
||||
}
|
||||
|
||||
inline bool properlyDominates(const DomTreeNode* A, DomTreeNode* B) const {
|
||||
return DT->properlyDominates(A, B);
|
||||
}
|
||||
@ -57,6 +65,10 @@ struct PostDominatorTree : public FunctionPass {
|
||||
return DT->properlyDominates(A, B);
|
||||
}
|
||||
|
||||
virtual void releaseMemory() {
|
||||
DT->releaseMemory();
|
||||
}
|
||||
|
||||
virtual void print(raw_ostream &OS, const Module*) const;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user