summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/InstCount.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-24 01:00:45 +0000
committerChris Lattner <sabre@nondot.org>2005-10-24 01:00:45 +0000
commitca014adf8ee758aea755a17786a85d3a29d963ce (patch)
treeda14370508011a669453877085ffed054984923d /llvm/lib/Analysis/InstCount.cpp
parent71a15b5b83785053edee397b5992b89a376016d0 (diff)
downloadbcm5719-llvm-ca014adf8ee758aea755a17786a85d3a29d963ce.tar.gz
bcm5719-llvm-ca014adf8ee758aea755a17786a85d3a29d963ce.zip
expose a ctor
llvm-svn: 23924
Diffstat (limited to 'llvm/lib/Analysis/InstCount.cpp')
-rw-r--r--llvm/lib/Analysis/InstCount.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/InstCount.cpp b/llvm/lib/Analysis/InstCount.cpp
index bd3f4db0c35..831cead4ce0 100644
--- a/llvm/lib/Analysis/InstCount.cpp
+++ b/llvm/lib/Analysis/InstCount.cpp
@@ -11,6 +11,7 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/Analysis/Passes.h"
#include "llvm/Pass.h"
#include "llvm/Function.h"
#include "llvm/Support/InstVisitor.h"
@@ -57,6 +58,8 @@ namespace {
"Counts the various types of Instructions");
}
+FunctionPass *llvm::createInstCountPass() { return new InstCount(); }
+
// InstCount::run - This is the main Analysis entry point for a
// function.
//
OpenPOWER on IntegriCloud