[libcxx-commits] [PATCH] D149092: [libcxxabi] define _LIBCPP_VERBOSE_ABORT
Nick Desaulniers via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 3 11:33:36 PDT 2023
nickdesaulniers updated this revision to Diff 519186.
nickdesaulniers retitled this revision from "[libcxxabi] disable lib{std}c++ assertions" to "[libcxxabi] define _LIBCPP_VERBOSE_ABORT".
nickdesaulniers edited the summary of this revision.
nickdesaulniers added a comment.
- change patch to define _LIBCPP_VERBOSE_ABORT
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,7 +11,11 @@
#ifndef LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
#define LIBCXXABI_DEMANGLE_DEMANGLE_CONFIG_H
+// Must be defined before pulling in headers from libc++.
+#define _LIBCPP_VERBOSE_ABORT(...) abort_message(__VA_ARGS__)
+
#include <ciso646>
+#include "../abort_message.h"
#ifdef _MSC_VER
// snprintf is implemented in VS 2015
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.519186.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230503/5bfbddf6/attachment.bin>
More information about the libcxx-commits
mailing list