[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp RSProfiling.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 27 17:42:51 PDT 2006
Changes in directory llvm/lib/Transforms/Instrumentation:
BlockProfiling.cpp updated: 1.15 -> 1.16
RSProfiling.cpp updated: 1.6 -> 1.7
---
Log message:
simplify AnalysisGroup registration, eliminating one typeid call.
---
Diffs of the changes: (+3 -3)
BlockProfiling.cpp | 4 ++--
RSProfiling.cpp | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.15 llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.16
--- llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp:1.15 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Instrumentation/BlockProfiling.cpp Sun Aug 27 19:42:29 2006
@@ -37,7 +37,7 @@
RegisterPass<FunctionProfiler> X("insert-function-profiling",
"Insert instrumentation for function profiling");
- RegisterAnalysisGroup<RSProfilers, FunctionProfiler> XG;
+ RegisterAnalysisGroup<RSProfilers> XG(X);
}
@@ -83,7 +83,7 @@
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(); }
Index: llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
diff -u llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.6 llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.7
--- llvm/lib/Transforms/Instrumentation/RSProfiling.cpp:1.6 Sun Aug 27 17:42:52 2006
+++ llvm/lib/Transforms/Instrumentation/RSProfiling.cpp Sun Aug 27 19:42:29 2006
@@ -89,7 +89,7 @@
static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
"Measure profiling framework overhead");
- static RegisterAnalysisGroup<RSProfilers, NullProfilerRS, true> NPT;
+ static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);
/// Chooser - Something that chooses when to make a sample of the profiled code
class Chooser {
More information about the llvm-commits
mailing list