mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user