mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 17:28:54 +00:00
simplify AnalysisGroup registration, eliminating one typeid call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -37,7 +37,7 @@ namespace {
|
||||
|
||||
RegisterPass<FunctionProfiler> X("insert-function-profiling",
|
||||
"Insert instrumentation for function profiling");
|
||||
RegisterAnalysisGroup<RSProfilers, FunctionProfiler> XG;
|
||||
RegisterAnalysisGroup<RSProfilers> XG(X);
|
||||
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace {
|
||||
|
||||
RegisterPass<BlockProfiler> Y("insert-block-profiling",
|
||||
"Insert instrumentation for block profiling");
|
||||
RegisterAnalysisGroup<RSProfilers, BlockProfiler> YG;
|
||||
RegisterAnalysisGroup<RSProfilers> YG(Y);
|
||||
}
|
||||
|
||||
ModulePass *llvm::createBlockProfilerPass() { return new BlockProfiler(); }
|
||||
|
Reference in New Issue
Block a user