From 844f7be870f3a3394ad439e882df7abb72ba5aa1 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 5 Aug 2024 14:43:45 -0400 Subject: [PATCH] [libcxxabi/demangle] Remove __cxxabi_config.h include (#101971) The demangler is shared between libcxxabi and llvm/lib/Demangle, see libcxxabi/src/demangle/README.txt. The copy in llvm/lib/Demangle cannot use __cxxabi_config.h. Remove the include. It was only used to identify clang, which can easily be done without the include as well. No intended behavior change. --- libcxxabi/src/demangle/ItaniumDemangle.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h index ecc9b1aeb5c6f80..88de234a6e0b926 100644 --- a/libcxxabi/src/demangle/ItaniumDemangle.h +++ b/libcxxabi/src/demangle/ItaniumDemangle.h @@ -19,7 +19,6 @@ #include "DemangleConfig.h" #include "StringViewExtras.h" #include "Utility.h" -#include <__cxxabi_config.h> #include #include #include @@ -31,7 +30,7 @@ #include #include -#ifdef _LIBCXXABI_COMPILER_CLANG +#if defined(__clang__) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wunused-template" #endif @@ -5948,7 +5947,7 @@ struct ManglingParser : AbstractManglingParser, Alloc> { DEMANGLE_NAMESPACE_END -#ifdef _LIBCXXABI_COMPILER_CLANG +#if defined(__clang__) #pragma clang diagnostic pop #endif