summaryrefslogtreecommitdiff
path: root/libcxxabi
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2025-11-10 20:04:26 +0100
committerGitHub <noreply@github.com>2025-11-10 20:04:26 +0100
commit46a8ddbd1494812474502de5f9841492225c28a1 (patch)
tree7a6e395ac20535537dfab8062a57b92e4a1e9693 /libcxxabi
parent0d97f43974122316863295256bfd20c6bd93a24c (diff)
[libc++abi][NFC] Remove some cruft from <__cxxabi_config.h> (#164578)
In `<__cxxabi_config.h>` there were a few things still around which aren't ever actually used. This removes some of that cruft.
Diffstat (limited to 'libcxxabi')
-rw-r--r--libcxxabi/include/__cxxabi_config.h24
1 files changed, 1 insertions, 23 deletions
diff --git a/libcxxabi/include/__cxxabi_config.h b/libcxxabi/include/__cxxabi_config.h
index f5101dbc9e59..e4fd845b1fb3 100644
--- a/libcxxabi/include/__cxxabi_config.h
+++ b/libcxxabi/include/__cxxabi_config.h
@@ -14,10 +14,6 @@
#define _LIBCXXABI_ARM_EHABI
#endif
-#if !defined(__has_attribute)
-#define __has_attribute(_attribute_) 0
-#endif
-
#if defined(__clang__)
# define _LIBCXXABI_COMPILER_CLANG
# ifndef __apple_build_version__
@@ -25,10 +21,6 @@
# endif
#elif defined(__GNUC__)
# define _LIBCXXABI_COMPILER_GCC
-#elif defined(_MSC_VER)
-# define _LIBCXXABI_COMPILER_MSVC
-#elif defined(__IBMCPP__)
-# define _LIBCXXABI_COMPILER_IBM
#endif
#if defined(_WIN32)
@@ -66,17 +58,7 @@
#endif
#endif
-#if defined(_LIBCXXABI_COMPILER_MSVC)
-#define _LIBCXXABI_WEAK
-#else
#define _LIBCXXABI_WEAK __attribute__((__weak__))
-#endif
-
-#if defined(__clang__)
-#define _LIBCXXABI_COMPILER_CLANG
-#elif defined(__GNUC__)
-#define _LIBCXXABI_COMPILER_GCC
-#endif
#if __has_attribute(__no_sanitize__) && defined(_LIBCXXABI_COMPILER_CLANG)
#define _LIBCXXABI_NO_CFI __attribute__((__no_sanitize__("cfi")))
@@ -89,11 +71,7 @@
# define _LIBCXXABI_GUARD_ABI_ARM
#endif
-#if defined(_LIBCXXABI_COMPILER_CLANG)
-# if !__has_feature(cxx_exceptions)
-# define _LIBCXXABI_NO_EXCEPTIONS
-# endif
-#elif defined(_LIBCXXABI_COMPILER_GCC) && !defined(__EXCEPTIONS)
+#if !defined(__cpp_exceptions) || __cpp_exceptions < 199711L
# define _LIBCXXABI_NO_EXCEPTIONS
#endif