diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-27 00:20:23 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-27 00:20:23 +0000 |
| commit | 026a87a8680aa639ba9c7db17624fd801635c0db (patch) | |
| tree | 92b32e8e3f63fdc2d0aee62c6bbf38462540600d /lib/Transforms/IPO/SimplifyLibCalls.cpp | |
| parent | 1ea099c5fde3405e3069d90d0afc92e087fc0316 (diff) | |
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
Diffstat (limited to 'lib/Transforms/IPO/SimplifyLibCalls.cpp')
| -rw-r--r-- | lib/Transforms/IPO/SimplifyLibCalls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index e82fe2c70d..20d83b87c3 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 |
