eliminate RegisterOpt. It does the same thing as RegisterPass.
llvm-svn: 29925
diff --git a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
index 9a85fc5..859f596 100644
--- a/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
@@ -35,7 +35,7 @@
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 @@
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;
}