summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/PostDominators.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2007-10-03 03:20:17 +0000
committerOwen Anderson <resistor@mac.com>2007-10-03 03:20:17 +0000
commit471ab54df756f2f48c9146ad897672662c3f25f9 (patch)
tree8cdee7f6b6c84fda8f9d08aa7f780e9ebb0da144 /include/llvm/Analysis/PostDominators.h
parent7687bd0b2bbff184586f0b4058b93d013a1ce508 (diff)
downloadllvm-471ab54df756f2f48c9146ad897672662c3f25f9.tar.gz
llvm-471ab54df756f2f48c9146ad897672662c3f25f9.tar.bz2
llvm-471ab54df756f2f48c9146ad897672662c3f25f9.tar.xz
Factor some code from the DomTree and PostDomTree calculate methods up into
each one's runOnFunction method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r--include/llvm/Analysis/PostDominators.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h
index d87f60465b..098339a0c5 100644
--- a/include/llvm/Analysis/PostDominators.h
+++ b/include/llvm/Analysis/PostDominators.h
@@ -27,11 +27,7 @@ struct PostDominatorTree : public DominatorTreeBase {
PostDominatorTree() :
DominatorTreeBase((intptr_t)&ID, true) {}
- virtual bool runOnFunction(Function &F) {
- reset(); // Reset from the last time we were run...
- PDTcalculate(*this, F);
- return false;
- }
+ virtual bool runOnFunction(Function &F);
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();