Fix "Statistics are disabled"
authorVitaly Buka <vitalybuka@google.com>
Wed, 3 Jun 2020 22:30:03 +0000 (15:30 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 3 Jun 2020 23:10:09 +0000 (16:10 -0700)
There is no -DLLVM_ENABLE_STATS, only
-DLLVM_FORCE_ENABLE_STATS.
It was renamed by 6cf299cf01e4a83844126f7faf17cbeb78e88da9

llvm/lib/Support/Statistic.cpp

index 25f1387..e9308ab 100644 (file)
@@ -246,7 +246,7 @@ void llvm::PrintStatistics() {
     // Get the stream to write to.
     std::unique_ptr<raw_ostream> OutStream = CreateInfoOutputFile();
     (*OutStream) << "Statistics are disabled.  "
-                 << "Build with asserts or with -DLLVM_ENABLE_STATS\n";
+                 << "Build with asserts or with -DLLVM_FORCE_ENABLE_STATS\n";
   }
 #endif
 }