aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Instrumentation/EdgeProfiling.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-07 06:57:28 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-07 06:57:28 +0000
commitd9ed8c888016d15eded298c25bc8bdeffcb8d155 (patch)
treef6dcc268c102273f2c140e608d6345a16d296bc4 /lib/Transforms/Instrumentation/EdgeProfiling.cpp
parentafc2000a1b9bc13ee25309c8ef0277560b71ace7 (diff)
downloadexternal_llvm-d9ed8c888016d15eded298c25bc8bdeffcb8d155.zip
external_llvm-d9ed8c888016d15eded298c25bc8bdeffcb8d155.tar.gz
external_llvm-d9ed8c888016d15eded298c25bc8bdeffcb8d155.tar.bz2
Add missing createXxxPass functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/EdgeProfiling.cpp')
-rw-r--r--lib/Transforms/Instrumentation/EdgeProfiling.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/lib/Transforms/Instrumentation/EdgeProfiling.cpp
index 89c540c..c453554 100644
--- a/lib/Transforms/Instrumentation/EdgeProfiling.cpp
+++ b/lib/Transforms/Instrumentation/EdgeProfiling.cpp
@@ -22,6 +22,7 @@
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
+#include "llvm/Transforms/Instrumentation.h"
#include "ProfilingUtils.h"
#include <iostream>
#include <set>
@@ -36,6 +37,8 @@ namespace {
"Insert instrumentation for edge profiling");
}
+ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); }
+
bool EdgeProfiler::runOnModule(Module &M) {
Function *Main = M.getMainFunction();
if (Main == 0) {