[libcxx-commits] [PATCH] D149092: [libcxxabi] define _LIBCPP_VERBOSE_ABORT

Nick Desaulniers via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 17 09:43:07 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG74d49b203c95: [libcxxabi] define _LIBCPP_VERBOSE_ABORT (authored by nickdesaulniers).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149092/new/

https://reviews.llvm.org/D149092

Files:
  libcxxabi/src/cxa_demangle.cpp
  libcxxabi/src/demangle/DemangleConfig.h


Index: libcxxabi/src/demangle/DemangleConfig.h
===================================================================
--- libcxxabi/src/demangle/DemangleConfig.h
+++ libcxxabi/src/demangle/DemangleConfig.h
@@ -11,6 +11,11 @@
 #ifndef LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
 #define LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
 
+// Must be defined before pulling in headers from libc++.
+// https://libcxx.llvm.org/UsingLibcxx.html#enabling-the-safe-libc-mode
+#define _LIBCPP_VERBOSE_ABORT(...) abort_message(__VA_ARGS__)
+
+#include "../abort_message.h"
 #include <ciso646>
 
 #ifdef _MSC_VER
Index: libcxxabi/src/cxa_demangle.cpp
===================================================================
--- libcxxabi/src/cxa_demangle.cpp
+++ libcxxabi/src/cxa_demangle.cpp
@@ -10,6 +10,7 @@
 // file does not yet support:
 //   - C++ modules TS
 
+#include "demangle/DemangleConfig.h"
 #include "demangle/ItaniumDemangle.h"
 #include "__cxxabi_config.h"
 #include <cassert>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149092.523086.patch
Type: text/x-patch
Size: 960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230517/b027914d/attachment.bin>


More information about the libcxx-commits mailing list