diff options
author | Chris Lattner <sabre@nondot.org> | 2003-08-29 14:43:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-08-29 14:43:17 +0000 |
commit | 5f9be67e072d0b7b0c2785c12dd0b0fc096bf226 (patch) | |
tree | a68a73ee6827efb77258c539aa33c3fe434b9c28 /llvm/lib/Analysis/InstCount.cpp | |
parent | 0e287475cb102312844f24812bd153d2c80d1d6b (diff) | |
download | bcm5719-llvm-5f9be67e072d0b7b0c2785c12dd0b0fc096bf226.tar.gz bcm5719-llvm-5f9be67e072d0b7b0c2785c12dd0b0fc096bf226.zip |
There is no reason for this to be a pass!
llvm-svn: 8214
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r-- | llvm/lib/Analysis/InstCount.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp index 18e0b9aceae..85f580c25d6 100644 --- a/llvm/lib/Analysis/InstCount.cpp +++ b/llvm/lib/Analysis/InstCount.cpp @@ -5,7 +5,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Pass.h" -#include "llvm/Module.h" +#include "llvm/Function.h" #include "llvm/Support/InstVisitor.h" #include "Support/Statistic.h" @@ -19,7 +19,7 @@ namespace { #include "llvm/Instruction.def" - class InstCount : public Pass, public InstVisitor<InstCount> { + class InstCount : public FunctionPass, public InstVisitor<InstCount> { friend class InstVisitor<InstCount>; void visitFunction (Function &F) { ++TotalFuncs; } @@ -35,7 +35,7 @@ namespace { abort(); } public: - virtual bool run(Module &M); + virtual bool runOnFunction(Function &F); virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); @@ -51,7 +51,7 @@ namespace { // InstCount::run - This is the main Analysis entry point for a // function. // -bool InstCount::run(Module &M) { - visit(M); +bool InstCount::runOnFunction(Function &F) { + visit(F); return false; } |