[llvm] 5477cf0 - Fix "Statistics are disabled"
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 16:10:19 PDT 2020
Author: Vitaly Buka
Date: 2020-06-03T16:10:09-07:00
New Revision: 5477cf06d654e319ed066ba7f497e278853762be
URL: https://github.com/llvm/llvm-project/commit/5477cf06d654e319ed066ba7f497e278853762be
DIFF: https://github.com/llvm/llvm-project/commit/5477cf06d654e319ed066ba7f497e278853762be.diff
LOG: Fix "Statistics are disabled"
There is no -DLLVM_ENABLE_STATS, only
-DLLVM_FORCE_ENABLE_STATS.
It was renamed by 6cf299cf01e4a83844126f7faf17cbeb78e88da9
Added:
Modified:
llvm/lib/Support/Statistic.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Statistic.cpp b/llvm/lib/Support/Statistic.cpp
index 25f13871e2e4..e9308ab575ab 100644
--- a/llvm/lib/Support/Statistic.cpp
+++ b/llvm/lib/Support/Statistic.cpp
@@ -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
}
More information about the llvm-commits
mailing list