summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-04-23 04:45:42 +0000
committerDan Albert <danalbert@google.com>2014-04-23 04:45:42 +0000
commit674e99db596c1cd16864bb6d3de05d39eeb932cd (patch)
treebba2bc14bed918f12ccd245356f0f03a62a5e1e9 /include
parent6daf050b4a21b29ccd00b93549cb45d6db2968ad (diff)
Fixes incorrect #ifs for SJ/LJ exceptions
The was working because, given __APPLE__, _LIBUNWIND_BUILD_SJLJ_APIS was set to __arm__, but other ARM targets not using SJ/LJ will fail to compile. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@206941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/unwind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/unwind.h b/include/unwind.h
index c5acd93..20634ae 100644
--- a/include/unwind.h
+++ b/include/unwind.h
@@ -83,7 +83,7 @@ extern "C" {
//
// The following are the base functions documented by the C++ ABI
//
-#if __arm__
+#if __USING_SJLJ_EXCEPTIONS__
extern _Unwind_Reason_Code
_Unwind_SjLj_RaiseException(struct _Unwind_Exception *exception_object);
extern void _Unwind_SjLj_Resume(struct _Unwind_Exception *exception_object);