Make the unwinder build on thumbv6-m with the integrated assembler.
authorJonathan Roelofs <jonathan@codesourcery.com>
Sat, 14 Feb 2015 00:21:03 +0000 (00:21 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Sat, 14 Feb 2015 00:21:03 +0000 (00:21 +0000)
http://reviews.llvm.org/D7630

llvm-svn: 229194

libcxxabi/src/Unwind/UnwindRegistersSave.S

index 3f7400f..aa437ca 100644 (file)
@@ -316,7 +316,11 @@ DEFINE_LIBUNWIND_FUNCTION(unw_getcontext)
   str lr, [r0, #56]
   str lr, [r0, #60]  @ store return address as pc
 #endif
+#if __ARM_ARCH_ISA_THUMB1 == 1
+  movs r0, #0        @ return UNW_ESUCCESS
+#else
   mov r0, #0         @ return UNW_ESUCCESS
+#endif
   JMP(lr)
 
 @