diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-28 00:42:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-28 00:42:29 +0000 |
commit | a5370172b64bed5daf8e2869d7bf7cb52f80d6b7 (patch) | |
tree | 1af9676bf65c14df5ff1d8bb43c02ed29ba2f4d6 /lib/Transforms/Instrumentation/BlockProfiling.cpp | |
parent | 84f82f7fac2735548eb6f800bd1fdeb4759f1c4b (diff) |
simplify AnalysisGroup registration, eliminating one typeid call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/BlockProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/BlockProfiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/BlockProfiling.cpp b/lib/Transforms/Instrumentation/BlockProfiling.cpp index 859f596fa6..7e1f5cc76c 100644 --- a/lib/Transforms/Instrumentation/BlockProfiling.cpp +++ b/lib/Transforms/Instrumentation/BlockProfiling.cpp @@ -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(); } |