Prefix the debug statistics so they group together.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 27 Apr 2005 00:20:23 +0000 (00:20 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 27 Apr 2005 00:20:23 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21583 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index e82fe2c70d16883d21dfe210de131e3145fc986d..20d83b87c3a2295e1a2c9bd1528d26d8f8290498 100644 (file)
@@ -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