[PATCH] D42399: [libc++abi] Fix unused function when building with LIBCXXABI_SILENT_TERMINATE

Tom Anderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 17:22:13 PST 2018


thomasanderson updated this revision to Diff 131376.

https://reviews.llvm.org/D42399

Files:
  src/cxa_default_handlers.cpp


Index: src/cxa_default_handlers.cpp
===================================================================
--- src/cxa_default_handlers.cpp
+++ 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.131376.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180125/4cf402dc/attachment.bin>


More information about the llvm-commits mailing list