[PATCH] D30339: [libcxxabi] Disable calls to fprintf when building for baremetal targets in release mode
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 24 08:55:26 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL296136: [libcxxabi] Disable calls to fprintf for baremetal targets. (authored by rsingh).
Changed prior to commit:
https://reviews.llvm.org/D30339?vs=89674&id=89681#toc
Repository:
rL LLVM
https://reviews.llvm.org/D30339
Files:
libcxxabi/trunk/src/abort_message.cpp
Index: libcxxabi/trunk/src/abort_message.cpp
===================================================================
--- libcxxabi/trunk/src/abort_message.cpp
+++ libcxxabi/trunk/src/abort_message.cpp
@@ -35,14 +35,16 @@
void abort_message(const char* format, ...)
{
// write message to stderr
+#if !defined(NDEBUG) && !defined(LIBCXXABI_BAREMETAL)
#ifdef __APPLE__
fprintf(stderr, "libc++abi.dylib: ");
#endif
va_list list;
va_start(list, format);
vfprintf(stderr, format, list);
va_end(list);
fprintf(stderr, "\n");
+#endif
#if defined(__APPLE__) && defined(HAVE_CRASHREPORTERCLIENT_H)
// record message in crash report
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30339.89681.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170224/d3b4be57/attachment.bin>
More information about the cfe-commits
mailing list