aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-04-27 00:20:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-04-27 00:20:23 +0000
commit026a87a8680aa639ba9c7db17624fd801635c0db (patch)
tree92b32e8e3f63fdc2d0aee62c6bbf38462540600d
parent1ea099c5fde3405e3069d90d0afc92e087fc0316 (diff)
downloadexternal_llvm-026a87a8680aa639ba9c7db17624fd801635c0db.zip
external_llvm-026a87a8680aa639ba9c7db17624fd801635c0db.tar.gz
external_llvm-026a87a8680aa639ba9c7db17624fd801635c0db.tar.bz2
Prefix the debug statistics so they group together.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21583 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/IPO/SimplifyLibCalls.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp
index e82fe2c..20d83b8 100644
--- a/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp
@@ -104,6 +104,7 @@ namespace {
private:
const char* func_name;
#ifndef NDEBUG
+ std::string stat_name;
Statistic<> activations;
#endif
};
@@ -115,7 +116,8 @@ namespace {
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