summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
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
commitdc11db68b63afd46ac2e44834f7745fb10d27556 (patch)
tree5acf9b089a8d608c350d2a21e4af0b0413fc7bb4 /llvm/lib/Transforms
parente95a647b2af0f667267dbd52a435d65893f0f589 (diff)
downloadbcm5719-llvm-dc11db68b63afd46ac2e44834f7745fb10d27556.tar.gz
bcm5719-llvm-dc11db68b63afd46ac2e44834f7745fb10d27556.zip
Prefix the debug statistics so they group together.
llvm-svn: 21583
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
index e82fe2c70d1..20d83b87c3a 100644
--- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud