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 | bb85dd6f33a8d83cc56fcaf96ad3ee61044ba659 (patch) | |
| tree | c142d831d9dec2ca65f470efac6d4a2d0479d7f8 | |
| parent | 0e70af36c0548370cca4e62e7c4450dcefe9c7ef (diff) | |
| download | bcm5719-llvm-bb85dd6f33a8d83cc56fcaf96ad3ee61044ba659.tar.gz bcm5719-llvm-bb85dd6f33a8d83cc56fcaf96ad3ee61044ba659.zip | |
Add dominates and releaseMemory member functions to PostDominatorTree.
llvm-svn: 82904
| -rw-r--r-- | llvm/include/llvm/Analysis/PostDominators.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PostDominators.h b/llvm/include/llvm/Analysis/PostDominators.h index 6c9e05fd4b2..171cfdb2eac 100644 --- a/llvm/include/llvm/Analysis/PostDominators.h +++ b/llvm/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; }; |

