unwind: clean up straggling -Wundef warning
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 11 Feb 2015 05:20:44 +0000 (05:20 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 11 Feb 2015 05:20:44 +0000 (05:20 +0000)
Conservatively define __ARM_ARCH to 4 in the case that it is undefined (e.g.
with GCC).

llvm-svn: 228806

libcxxabi/src/Unwind/assembly.h

index b749d67..f46a24d 100644 (file)
   SYMBOL_NAME(name):
 
 #if defined(__arm__)
+#if !defined(__ARM_ARCH)
+#define __ARM_ARCH 4
+#endif
+
 #if defined(__ARM_ARCH_4T__) || __ARM_ARCH >= 5
 #define ARM_HAS_BX
 #endif