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
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
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits