[libunwind] Remove __FILE__ and __LINE__ from error reporting
authorLeonard Chan <leonardchan@google.com>
Wed, 11 Mar 2020 01:58:41 +0000 (18:58 -0700)
committerLeonard Chan <leonardchan@google.com>
Wed, 11 Mar 2020 01:58:41 +0000 (18:58 -0700)
commit1c70dec18c7e530264cc70841cc60f385259b9e0
tree1d35696c2544e765e491a68025e1d42004084002
parent48121a5743b684def33d158391c5424626de28e2
[libunwind] Remove __FILE__ and __LINE__ from error reporting

We were seeing non-deterministic binary size differences depending on which
toolchain was used to build fuchsia. This is because libunwind embeded the
FILE path into a logging macro, even for release builds, which makes the code
dependent on the build directory.

This removes the file and line number from the error message. This is
consistent with how other runtimes report error, e.g.
https://github.com/llvm/llvm-project/blob/master/libcxxabi/src/abort_message.cpp#L30.

Differential Revision: https://reviews.llvm.org/D75890
libunwind/src/config.h