From: Bob Wilson Date: Fri, 6 Jan 2017 02:26:33 +0000 (+0000) Subject: Revert "Use _Unwind_Backtrace on Apple platforms." X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ffd2e44bf8117ad03280955011b8c9989eea146;p=llvm Revert "Use _Unwind_Backtrace on Apple platforms." This reverts commit 63165f6ae3bac1623be36d4b3ce63afa1d51a30a. After making this change, I discovered that _Unwind_Backtrace is unable to unwind past a signal handler after an assertion failure. I filed a bug report about that issue in rdar://29866587 but even if we get a fix soon, it will be awhile before it get released. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291207 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index 3750d7f4c09..9752b70644c 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -48,7 +48,7 @@ // _Unwind_Backtrace function, but on FreeBSD the configure test passes // despite the function not existing, and on Android, conflicts // with . -#if defined(__GLIBC__) || defined(__APPLE__) +#ifdef __GLIBC__ #include #else #undef HAVE__UNWIND_BACKTRACE