summaryrefslogtreecommitdiffstats
path: root/lib/Analysis/AliasAnalysisEvaluator.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-03-19 00:48:41 +0000
committerDevang Patel <dpatel@apple.com>2008-03-19 00:48:41 +0000
commitc7fe32e840758baa9ce4f93c321b508a69b98262 (patch)
tree8880489b1046f714fff98a468cd30202e533b6f4 /lib/Analysis/AliasAnalysisEvaluator.cpp
parentbebc3642d354ef744f3fd55a20d28ba29ec51063 (diff)
downloadexternal_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 'lib/Analysis/AliasAnalysisEvaluator.cpp')
-rw-r--r--lib/Analysis/AliasAnalysisEvaluator.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Analysis/AliasAnalysisEvaluator.cpp b/lib/Analysis/AliasAnalysisEvaluator.cpp
index 51fdec4..648760a 100644
--- a/lib/Analysis/AliasAnalysisEvaluator.cpp
+++ b/lib/Analysis/AliasAnalysisEvaluator.cpp
@@ -52,7 +52,7 @@ namespace {
public:
static char ID; // Pass identification, replacement for typeid
- AAEval() : FunctionPass((intptr_t)&ID) {}
+ AAEval() : FunctionPass((intptr_t)&ID, true) {}
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<AliasAnalysis>();
@@ -70,9 +70,6 @@ namespace {
return false;
}
- /// isAnalysis - Return true if this pass is implementing an analysis pass.
- virtual bool isAnalysis() const { return true; }
-
bool runOnFunction(Function &F);
bool doFinalization(Module &M);
};