This extends SVN r314197 from the arm parts to the whole file.
Differential Revision: https://reviews.llvm.org/D38381
llvm-svn: 314492
.text
+#if !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__)
+
#if defined(__i386__)
DEFINE_LIBUNWIND_PRIVATE_FUNCTION(_ZN9libunwind13Registers_x866jumptoEv)
#
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
#endif
+#endif /* !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) */
+
NO_EXEC_STACK_DIRECTIVE
.text
+#if !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__)
+
#if defined(__i386__)
#
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
l.sw 124(r3), r31
#endif
+#endif /* !defined(__APPLE__) && !defined(__USING_SJLJ_EXCEPTIONS__) */
+
NO_EXEC_STACK_DIRECTIVE