diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-19 00:48:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-19 00:48:41 +0000 |
commit | c7fe32e840758baa9ce4f93c321b508a69b98262 (patch) | |
tree | 8880489b1046f714fff98a468cd30202e533b6f4 /include/llvm/Analysis/PostDominators.h | |
parent | bebc3642d354ef744f3fd55a20d28ba29ec51063 (diff) | |
download | external_llvm-c7fe32e840758baa9ce4f93c321b508a69b98262.zip external_llvm-c7fe32e840758baa9ce4f93c321b508a69b98262.tar.gz external_llvm-c7fe32e840758baa9ce4f93c321b508a69b98262.tar.bz2 |
Do not use virtual function to identify an analysis pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PostDominators.h')
-rw-r--r-- | include/llvm/Analysis/PostDominators.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/Analysis/PostDominators.h b/include/llvm/Analysis/PostDominators.h index c55022b..f20f050 100644 --- a/include/llvm/Analysis/PostDominators.h +++ b/include/llvm/Analysis/PostDominators.h @@ -25,13 +25,10 @@ struct PostDominatorTree : public FunctionPass { static char ID; // Pass identification, replacement for typeid DominatorTreeBase<BasicBlock>* DT; - PostDominatorTree() : FunctionPass((intptr_t)&ID) { + PostDominatorTree() : FunctionPass((intptr_t)&ID, true) { DT = new DominatorTreeBase<BasicBlock>(true); } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { @@ -72,9 +69,6 @@ struct PostDominanceFrontier : public DominanceFrontierBase { PostDominanceFrontier() : DominanceFrontierBase((intptr_t) &ID, true) {} - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - virtual bool runOnFunction(Function &) { Frontiers.clear(); PostDominatorTree &DT = getAnalysis<PostDominatorTree>(); |