diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-07 06:57:28 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-07 06:57:28 +0000 |
commit | 9a7ac162149b704a2c3bf47288c5905e7025d1df (patch) | |
tree | 5278b50ad241616087a644eb5c12bc71130fc611 /llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp | |
parent | d97ad08ef81cd296eb125f4fef4cc4883f03c798 (diff) | |
download | bcm5719-llvm-9a7ac162149b704a2c3bf47288c5905e7025d1df.tar.gz bcm5719-llvm-9a7ac162149b704a2c3bf47288c5905e7025d1df.zip |
Add missing createXxxPass functions
llvm-svn: 19319
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp index 89c540c5bcd..c453554236e 100644 --- a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp +++ b/llvm/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) { |