summaryrefslogtreecommitdiff
path: root/lib/Analysis/InstCount.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-29 14:43:17 +0000
committerChris Lattner <sabre@nondot.org>2003-08-29 14:43:17 +0000
commit6666a04c6c3797c3833e1af0d9b1c6d896b3c1f0 (patch)
treef4ea40f6ca4dc3af4dce902323b030d3e4c00f1f /lib/Analysis/InstCount.cpp
parentdf9ec1052b089f7c7520823addd74b3fd97ba674 (diff)
downloadllvm-6666a04c6c3797c3833e1af0d9b1c6d896b3c1f0.tar.gz
llvm-6666a04c6c3797c3833e1af0d9b1c6d896b3c1f0.tar.bz2
llvm-6666a04c6c3797c3833e1af0d9b1c6d896b3c1f0.tar.xz
There is no reason for this to be a pass!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstCount.cpp')
-rw-r--r--lib/Analysis/InstCount.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/InstCount.cpp b/lib/Analysis/InstCount.cpp
index 18e0b9acea..85f580c25d 100644
--- a/lib/Analysis/InstCount.cpp
+++ b/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;
}