summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstCount.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
commitaf75ab81303cd875704ffbe4e4115badbcd6bd93 (patch)
treef3a0147ea36507c6d99f75fc93fd9f5d203b9a79 /llvm/lib/Analysis/InstCount.cpp
parent8800ae68a0dfc060d404cad723bd23215d4a1f48 (diff)
downloadbcm5719-llvm-af75ab81303cd875704ffbe4e4115badbcd6bd93.tar.gz
bcm5719-llvm-af75ab81303cd875704ffbe4e4115badbcd6bd93.zip
Do not use virtual function to identify an analysis pass.
llvm-svn: 48520
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r--llvm/lib/Analysis/InstCount.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp
index 08a27a66b32..2eae5c369ab 100644
--- a/llvm/lib/Analysis/InstCount.cpp
+++ b/llvm/lib/Analysis/InstCount.cpp
@@ -51,12 +51,8 @@ namespace {
abort();
}
public:
-
- /// isAnalysis - Return true if this pass is implementing an analysis pass.
- virtual bool isAnalysis() const { return true; }
-
static char ID; // Pass identification, replacement for typeid
- InstCount() : FunctionPass((intptr_t)&ID) {}
+ InstCount() : FunctionPass((intptr_t)&ID, true) {}
virtual bool runOnFunction(Function &F);
OpenPOWER on IntegriCloud