Skip to content

Commit

Permalink
[libcxxabi/demangle] Remove __cxxabi_config.h include (#101971)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nico authored Aug 5, 2024
1 parent 248c534 commit 08a61eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libcxxabi/src/demangle/ItaniumDemangle.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "DemangleConfig.h"
#include "StringViewExtras.h"
#include "Utility.h"
#include <__cxxabi_config.h>
#include <algorithm>
#include <cctype>
#include <cstdio>
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 08a61eb

Please sign in to comment.