[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
Reid Spencer
reid at x10sys.com
Tue Apr 26 17:20:34 PDT 2005
Changes in directory llvm/lib/Transforms/IPO:
SimplifyLibCalls.cpp updated: 1.15 -> 1.16
---
Log message:
Prefix the debug statistics so they group together.
---
Diffs of the changes: (+3 -1)
SimplifyLibCalls.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.15 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.16
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.15 Tue Apr 26 19:05:45 2005
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp Tue Apr 26 19:20:23 2005
@@ -104,6 +104,7 @@
private:
const char* func_name;
#ifndef NDEBUG
+ std::string stat_name;
Statistic<> activations;
#endif
};
@@ -115,7 +116,8 @@
CallOptimizer::CallOptimizer(const char* fname)
: func_name(fname)
#ifndef NDEBUG
- , activations(fname,"Number of calls simplified")
+ , stat_name(std::string("simplify-libcalls:")+fname)
+ , activations(stat_name.c_str(),"Number of calls simplified")
#endif
{
// Register this call optimizer
More information about the llvm-commits
mailing list