[PATCH] D91094: fix some Wundef warnings in public headers
Jameson Nash via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 9 11:01:22 PST 2020
vtjnash created this revision.
Herald added subscribers: llvm-commits, dexonsmith, mgorny.
Herald added a project: LLVM.
vtjnash requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91094
Files:
llvm/include/llvm/ADT/Statistic.h
llvm/include/llvm/Config/abi-breaking.h.cmake
Index: llvm/include/llvm/Config/abi-breaking.h.cmake
===================================================================
--- llvm/include/llvm/Config/abi-breaking.h.cmake
+++ 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
Index: llvm/include/llvm/ADT/Statistic.h
===================================================================
--- llvm/include/llvm/ADT/Statistic.h
+++ 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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91094.303938.patch
Type: text/x-patch
Size: 1016 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201109/03c7db1e/attachment.bin>
More information about the llvm-commits
mailing list