diff options
author | Devang Patel <dpatel@apple.com> | 2008-03-18 00:39:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-03-18 00:39:19 +0000 |
commit | 864970e9b629e34e39f1a8b80c01d196ebf706de (patch) | |
tree | ffe44f7fdef61737d3e6c236ff45cc4922a2b1ce /llvm/lib/Analysis/InstCount.cpp | |
parent | 924ca7f01d4670682d4e68222e06e7ed6bc1fbad (diff) | |
download | bcm5719-llvm-864970e9b629e34e39f1a8b80c01d196ebf706de.tar.gz bcm5719-llvm-864970e9b629e34e39f1a8b80c01d196ebf706de.zip |
Identify Analysis pass.
Do not run analysis pass again if analysis info is still available.
This fixes PR1441.
llvm-svn: 48476
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r-- | llvm/lib/Analysis/InstCount.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp index 78c4a377b03..08a27a66b32 100644 --- a/llvm/lib/Analysis/InstCount.cpp +++ b/llvm/lib/Analysis/InstCount.cpp @@ -51,6 +51,10 @@ 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) {} |