diff options
Diffstat (limited to 'lib/Transforms/Instrumentation/EdgeProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/EdgeProfiling.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/lib/Transforms/Instrumentation/EdgeProfiling.cpp index c584ca5..89c540c 100644 --- a/lib/Transforms/Instrumentation/EdgeProfiling.cpp +++ b/lib/Transforms/Instrumentation/EdgeProfiling.cpp @@ -28,15 +28,15 @@ using namespace llvm; namespace { - class EdgeProfiler : public Pass { - bool run(Module &M); + class EdgeProfiler : public ModulePass { + bool runOnModule(Module &M); }; RegisterOpt<EdgeProfiler> X("insert-edge-profiling", "Insert instrumentation for edge profiling"); } -bool EdgeProfiler::run(Module &M) { +bool EdgeProfiler::runOnModule(Module &M) { Function *Main = M.getMainFunction(); if (Main == 0) { std::cerr << "WARNING: cannot insert edge profiling into a module" |