1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Statistic - Fix MSVC shadow warning against global PrintOnExit static variable. NFC.

This commit is contained in:
Simon Pilgrim 2019-11-21 11:56:48 +00:00
parent a1512ae17b
commit d53b84ad2b
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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() {