From 026a87a8680aa639ba9c7db17624fd801635c0db Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 27 Apr 2005 00:20:23 +0000 Subject: [PATCH] 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 --- lib/Transforms/IPO/SimplifyLibCalls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index e82fe2c70d1..20d83b87c3a 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