diff options
| author | Martin Storsjo <martin@martin.st> | 2017-09-29 06:09:09 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2017-09-29 06:09:09 +0000 |
| commit | c2ec6ce65c50bb9ad2ed0d1a6e7ae7c2c35c34fd (patch) | |
| tree | 85420dc4038d4f3dfb0236d901482657427bb8c4 | |
| parent | 9d57dc6fb1d1738343922a57f2a59163d0aa7470 (diff) | |
| download | bcm5719-llvm-c2ec6ce65c50bb9ad2ed0d1a6e7ae7c2c35c34fd.tar.gz bcm5719-llvm-c2ec6ce65c50bb9ad2ed0d1a6e7ae7c2c35c34fd.zip | |
Skip building x86 parts of UnwindRegisters*.S when targeting SjLj
This extends SVN r314197 from the arm parts to the whole file.
Differential Revision: https://reviews.llvm.org/D38381
llvm-svn: 314492
| -rw-r--r-- | libunwind/src/UnwindRegistersRestore.S | 6 | ||||
| -rw-r--r-- | libunwind/src/UnwindRegistersSave.S | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/libunwind/src/UnwindRegistersRestore.S b/libunwind/src/UnwindRegistersRestore.S index e629e256c95..a90d5f582f2 100644 --- a/libunwind/src/UnwindRegistersRestore.S +++ b/libunwind/src/UnwindRegistersRestore.S @@ -11,6 +11,8 @@ .text +#if !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) + #if defined(__i386__) DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind13Registers_x866jumptoEv) # @@ -308,7 +310,7 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind15Registers_arm646jumptoEv) ldp x0, x1, [x0, #0x000] // restore x0,x1 ret x30 // jump to pc -#elif defined(__arm__) && !(defined(__APPLE__) || defined(__USING_SJLJ_EXCEPTIONS__)) +#elif defined(__arm__) #if !defined(__ARM_ARCH_ISA_ARM) .thumb @@ -491,5 +493,7 @@ DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind14Registers_or1k6jumptoEv) #endif +#endif /* !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) */ + NO_EXEC_STACK_DIRECTIVE diff --git a/libunwind/src/UnwindRegistersSave.S b/libunwind/src/UnwindRegistersSave.S index a0f864eb15a..7f5a9acf5a8 100644 --- a/libunwind/src/UnwindRegistersSave.S +++ b/libunwind/src/UnwindRegistersSave.S @@ -11,6 +11,8 @@ .text +#if !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) + #if defined(__i386__) # @@ -289,7 +291,7 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext) mov x0, #0 // return UNW_ESUCCESS ret -#elif defined(__arm__) && !(defined(__APPLE__) || defined(__USING_SJLJ_EXCEPTIONS__)) +#elif defined(__arm__) #if !defined(__ARM_ARCH_ISA_ARM) .thumb @@ -471,5 +473,7 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext) l.sw 124(r3), r31 #endif +#endif /* !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) */ + NO_EXEC_STACK_DIRECTIVE |

