[llvm] 8f1e0dc - fix some Wundef warnings in public headers
Jameson Nash via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 23 17:19:30 PST 2020
Author: Jameson Nash
Date: 2020-11-23T20:17:46-05:00
New Revision: 8f1e0dcbb090243423faa4228ba58ddbae909c70
URL: https://github.com/llvm/llvm-project/commit/8f1e0dcbb090243423faa4228ba58ddbae909c70
DIFF: https://github.com/llvm/llvm-project/commit/8f1e0dcbb090243423faa4228ba58ddbae909c70.diff
LOG: fix some Wundef warnings in public headers
Differential Revision: https://reviews.llvm.org/D91094
Added:
Modified:
llvm/include/llvm/ADT/Statistic.h
llvm/include/llvm/Config/abi-breaking.h.cmake
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/Statistic.h b/llvm/include/llvm/ADT/Statistic.h
index d7aff6c5939a..aa338ccff19a 100644
--- a/llvm/include/llvm/ADT/Statistic.h
+++ b/llvm/include/llvm/ADT/Statistic.h
@@ -36,6 +36,8 @@
// configure time.
#if !defined(NDEBUG) || LLVM_FORCE_ENABLE_STATS
#define LLVM_ENABLE_STATS 1
+#else
+#define LLVM_ENABLE_STATS 0
#endif
namespace llvm {
diff --git a/llvm/include/llvm/Config/abi-breaking.h.cmake b/llvm/include/llvm/Config/abi-breaking.h.cmake
index a1ffad660770..2d27e02b1d54 100644
--- a/llvm/include/llvm/Config/abi-breaking.h.cmake
+++ b/llvm/include/llvm/Config/abi-breaking.h.cmake
@@ -20,7 +20,7 @@
/* Allow selectively disabling link-time mismatch checking so that header-only
ADT content from LLVM can be used without linking libSupport. */
-#if !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
+#if !defined(LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING) || !LLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING
// ABI_BREAKING_CHECKS protection: provides link-time failure when clients build
// mismatch with LLVM
More information about the llvm-commits
mailing list