summaryrefslogtreecommitdiffstats
path: root/src/libunwind.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2017-09-26 08:07:26 +0000
committerMartin Storsjo <martin@martin.st>2017-09-26 08:07:26 +0000
commite53dc3f92c82bd2b8810881a5724a557fc246659 (patch)
tree668fa977ed2ebad17747449dbb4cb89e003b2049 /src/libunwind.cpp
parent065563a2fe470ad72bc5c7e0495fe1750a792b50 (diff)
downloadplatform_external_libunwind_llvm-e53dc3f92c82bd2b8810881a5724a557fc246659.tar.gz
platform_external_libunwind_llvm-e53dc3f92c82bd2b8810881a5724a557fc246659.tar.bz2
platform_external_libunwind_llvm-e53dc3f92c82bd2b8810881a5724a557fc246659.zip
Skip building unused parts when targeting SJLJ
When SJLJ exceptions are used, those functions aren't used. This fixes build failures on ARM with SJLJ enabled (e.g. on armv7/iOS) when built using the CMake project files. Differential Revision: https://reviews.llvm.org/D38249 git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@314197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/libunwind.cpp')
-rw-r--r--src/libunwind.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libunwind.cpp b/src/libunwind.cpp
index f072d55..e9981f4 100644
--- a/src/libunwind.cpp
+++ b/src/libunwind.cpp
@@ -24,6 +24,7 @@
#include <stdlib.h>
+#if !defined(__USING_SJLJ_EXCEPTIONS__)
#include "AddressSpace.hpp"
#include "UnwindCursor.hpp"
@@ -341,6 +342,7 @@ void _unw_remove_dynamic_fde(unw_word_t fde) {
DwarfFDECache<LocalAddressSpace>::removeAllIn((LocalAddressSpace::pint_t)fde);
}
#endif // defined(_LIBUNWIND_SUPPORT_DWARF_UNWIND)
+#endif // !defined(__USING_SJLJ_EXCEPTIONS__)