diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:42:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-08-27 22:42:52 +0000 |
| commit | c2d3d3112e981b142ffdb742622b52bc165a3df9 (patch) | |
| tree | 01726132d406eb377d56c0590770db01784bef36 /llvm/lib/Transforms/Instrumentation | |
| parent | c7cff24f40b22bf010d33a92c08c707a419a6b98 (diff) | |
| download | bcm5719-llvm-c2d3d3112e981b142ffdb742622b52bc165a3df9.tar.gz bcm5719-llvm-c2d3d3112e981b142ffdb742622b52bc165a3df9.zip | |
eliminate RegisterOpt. It does the same thing as RegisterPass.
llvm-svn: 29925
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
6 files changed, 12 insertions, 12 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp index 9a85fc50d1c..859f596fa62 100644 --- a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp @@ -35,7 +35,7 @@ namespace { bool runOnModule(Module &M); }; - RegisterOpt<FunctionProfiler> X("insert-function-profiling", + RegisterPass<FunctionProfiler> X("insert-function-profiling", "Insert instrumentation for function profiling"); RegisterAnalysisGroup<RSProfilers, FunctionProfiler> XG; @@ -81,8 +81,8 @@ namespace { bool runOnModule(Module &M); }; - RegisterOpt<BlockProfiler> Y("insert-block-profiling", - "Insert instrumentation for block profiling"); + RegisterPass<BlockProfiler> Y("insert-block-profiling", + "Insert instrumentation for block profiling"); RegisterAnalysisGroup<RSProfilers, BlockProfiler> YG; } diff --git a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp index 2ac6cc87ded..a94c42dcaaf 100644 --- a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp @@ -33,8 +33,8 @@ namespace { bool runOnModule(Module &M); }; - RegisterOpt<EdgeProfiler> X("insert-edge-profiling", - "Insert instrumentation for edge profiling"); + RegisterPass<EdgeProfiler> X("insert-edge-profiling", + "Insert instrumentation for edge profiling"); } ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); } diff --git a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp index a49129399d2..05c3419e29b 100644 --- a/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp +++ b/llvm/lib/Transforms/Instrumentation/EmitFunctions.cpp @@ -40,7 +40,7 @@ namespace { bool runOnModule(Module &M); }; - RegisterOpt<EmitFunctionTable> + RegisterPass<EmitFunctionTable> X("emitfuncs", "Emit a function table for the reoptimizer"); } diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp index 31c01ee886d..984190a611b 100644 --- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp @@ -87,7 +87,7 @@ namespace { }; static RegisterAnalysisGroup<RSProfilers> A("Profiling passes"); - static RegisterOpt<NullProfilerRS> NP("insert-null-profiling-rs", + static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs", "Measure profiling framework overhead"); static RegisterAnalysisGroup<RSProfilers, NullProfilerRS, true> NPT; @@ -160,8 +160,8 @@ namespace { virtual void getAnalysisUsage(AnalysisUsage &AU) const; }; - RegisterOpt<ProfilerRS> X("insert-rs-profiling-framework", - "Insert random sampling instrumentation framework"); + RegisterPass<ProfilerRS> X("insert-rs-profiling-framework", + "Insert random sampling instrumentation framework"); } //Local utilities diff --git a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp index 66a1b22915b..d3af056ffce 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp +++ b/llvm/lib/Transforms/Instrumentation/TraceBasicBlocks.cpp @@ -31,7 +31,7 @@ namespace { bool runOnModule(Module &M); }; - RegisterOpt<TraceBasicBlocks> X("trace-basic-blocks", + RegisterPass<TraceBasicBlocks> X("trace-basic-blocks", "Insert instrumentation for basic block tracing"); } diff --git a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp index eba596b4274..d335f16cad8 100644 --- a/llvm/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/llvm/lib/Transforms/Instrumentation/TraceValues.cpp @@ -104,8 +104,8 @@ namespace { }; // Register the passes... - RegisterOpt<FunctionTracer> X("tracem","Insert Function trace code only"); - RegisterOpt<BasicBlockTracer> Y("trace","Insert BB and Function trace code"); + RegisterPass<FunctionTracer> X("tracem","Insert Function trace code only"); + RegisterPass<BasicBlockTracer> Y("trace","Insert BB and Function trace code"); } // end anonymous namespace /// Just trace functions |

