diff options
-rw-r--r-- | llvm/include/llvm/ADT/Statistic.h | 2 | ||||
-rw-r--r-- | llvm/lib/Support/Statistic.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h index b7387ddcf1c..d7aff6c5939 100644 --- a/llvm/include/llvm/ADT/Statistic.h +++ b/llvm/include/llvm/ADT/Statistic.h @@ -173,7 +173,7 @@ using Statistic = NoopStatistic; static llvm::TrackingStatistic VARNAME = {DEBUG_TYPE, #VARNAME, DESC} /// Enable the collection and printing of statistics. -void EnableStatistics(bool PrintOnExit = true); +void EnableStatistics(bool DoPrintOnExit = true); /// Check if statistics are enabled. bool AreStatisticsEnabled(); diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp index 8cc5020a217..25f13871e2e 100644 --- a/llvm/lib/Support/Statistic.cpp +++ b/llvm/lib/Support/Statistic.cpp @@ -123,9 +123,9 @@ StatisticInfo::~StatisticInfo() { llvm::PrintStatistics(); } -void llvm::EnableStatistics(bool PrintOnExit) { +void llvm::EnableStatistics(bool DoPrintOnExit) { Enabled = true; - ::PrintOnExit = PrintOnExit; + PrintOnExit = DoPrintOnExit; } bool llvm::AreStatisticsEnabled() { |