Revert "Remove LIBCXXABI_NORETURN for now"

This reverts commit 6a23f12f99.
This commit is contained in:
Piet Brauer
2017-06-07 09:11:23 -07:00
parent 551ca733c2
commit 94df35d489

View File

@@ -58,7 +58,7 @@ static pthread_key_t _BITCrashCXXExceptionInfoTSDKey = 0;
@implementation BITCrashUncaughtCXXExceptionHandlerManager
extern "C" void __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
extern "C" void LIBCXXABI_NORETURN __cxa_throw(void *exception_object, std::type_info *tinfo, void (*dest)(void *))
{
// Purposely do not take a lock in this function. The aim is to be as fast as
// possible. While we could really use some of the info set up by the real
@@ -72,7 +72,7 @@ extern "C" void __cxa_throw(void *exception_object, std::type_info *tinfo, void
// implementation changing in a future version. (Or not existing in an earlier
// version).
typedef void (*cxa_throw_func)(void *, std::type_info *, void (*)(void *));
typedef void (*cxa_throw_func)(void *, std::type_info *, void (*)(void *)) LIBCXXABI_NORETURN;
static dispatch_once_t predicate = 0;
static cxa_throw_func __original__cxa_throw = nullptr;
static const void **__real_objc_ehtype_vtable = nullptr;