[PATCH] D42399: [libc++abi] Fix unused function when building with LIBCXXABI_SILENT_TERMINATE
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 24 17:40:22 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323397: [libc++abi] Fix unused function when building with LIBCXXABI_SILENT_TERMINATE (authored by pcc, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D42399?vs=131376&id=131378#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42399
Files:
libcxxabi/trunk/src/cxa_default_handlers.cpp
Index: libcxxabi/trunk/src/cxa_default_handlers.cpp
===================================================================
--- libcxxabi/trunk/src/cxa_default_handlers.cpp
+++ libcxxabi/trunk/src/cxa_default_handlers.cpp
@@ -19,6 +19,7 @@
#include "cxa_exception.hpp"
#include "private_typeinfo.h"
+#if !defined(LIBCXXABI_SILENT_TERMINATE)
static const char* cause = "uncaught";
__attribute__((noreturn))
@@ -84,7 +85,6 @@
std::terminate();
}
-#if !defined(LIBCXXABI_SILENT_TERMINATE)
static std::terminate_handler default_terminate_handler = demangling_terminate_handler;
static std::terminate_handler default_unexpected_handler = demangling_unexpected_handler;
#else
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42399.131378.patch
Type: text/x-patch
Size: 685 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/123306cc/attachment.bin>
More information about the llvm-commits
mailing list