diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-27 17:39:12 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-27 17:39:12 +0000 |
commit | 6ba2142e9397002278f4275ffbae6caa28342607 (patch) | |
tree | 879f4743b200b9f0533e289fbc81800b8755c62b /include | |
parent | 791c8251355c2f25f39685a7deab22560793c6fa (diff) | |
download | external_llvm-6ba2142e9397002278f4275ffbae6caa28342607.zip external_llvm-6ba2142e9397002278f4275ffbae6caa28342607.tar.gz external_llvm-6ba2142e9397002278f4275ffbae6caa28342607.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index 6c9e05f..171cfdb 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -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; }; |