[libcxx-commits] [PATCH] D75890: [libunwind] Remove __FILE__ and __LINE__ from error reporting

Leonard Chan via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 10 12:33:54 PDT 2020


leonardchan updated this revision to Diff 249468.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75890/new/

https://reviews.llvm.org/D75890

Files:
  libunwind/src/config.h


Index: libunwind/src/config.h
===================================================================
--- libunwind/src/config.h
+++ libunwind/src/config.h
@@ -122,8 +122,7 @@
 #else
 #define _LIBUNWIND_ABORT(msg)                                                  \
   do {                                                                         \
-    fprintf(stderr, "libunwind: %s %s:%d - %s\n", __func__, __FILE__,          \
-            __LINE__, msg);                                                    \
+    fprintf(stderr, "libunwind: %s - %s\n", __func__, msg);                    \
     fflush(stderr);                                                            \
     abort();                                                                   \
   } while (0)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75890.249468.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200310/1ee47979/attachment-0001.bin>


More information about the libcxx-commits mailing list