[libcxx-commits] [libcxxabi] 08a61eb - [libcxxabi/demangle] Remove __cxxabi_config.h include (#101971)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 5 11:43:49 PDT 2024


Author: Nico Weber
Date: 2024-08-05T14:43:45-04:00
New Revision: 08a61eb01172054fc5f8c78ff527f01d9768569b

URL: https://github.com/llvm/llvm-project/commit/08a61eb01172054fc5f8c78ff527f01d9768569b
DIFF: https://github.com/llvm/llvm-project/commit/08a61eb01172054fc5f8c78ff527f01d9768569b.diff

LOG: [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.

Added: 
    

Modified: 
    libcxxabi/src/demangle/ItaniumDemangle.h

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/demangle/ItaniumDemangle.h b/libcxxabi/src/demangle/ItaniumDemangle.h
index ecc9b1aeb5c6f..88de234a6e0b9 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 <algorithm>
 #include <cctype>
 #include <cstdio>
@@ -31,7 +30,7 @@
 #include <type_traits>
 #include <utility>
 
-#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<ManglingParser<Alloc>, Alloc> {
 
 DEMANGLE_NAMESPACE_END
 
-#ifdef _LIBCXXABI_COMPILER_CLANG
+#if defined(__clang__)
 #pragma clang diagnostic pop
 #endif
 


        


More information about the libcxx-commits mailing list