[Basic] Don't use defined(LLVM_ENABLE_STATS) as it can be set to 0

LLVM_ENABLE_STATS can be defined to 0 since
https://reviews.llvm.org/D91094.

rdar://73834542
This commit is contained in:
Alexis Laferrière
2021-02-08 12:34:46 -08:00
parent 2d2a810e66
commit 17e926e93b

View File

@@ -703,7 +703,7 @@ UnifiedStatsReporter::~UnifiedStatsReporter()
// compile-time) so we sequence printing our own stats and LLVM's timers
// manually.
#if !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
#if !defined(NDEBUG) || LLVM_ENABLE_STATS
publishAlwaysOnStatsToLLVM();
PrintStatisticsJSON(ostream);
TimerGroup::clearAll();