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:
parent
a1512ae17b
commit
d53b84ad2b
@ -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();
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user