unwind: unify _LIBUNWIND_SUPPORT_DWARF_UNWIND
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Apr 2016 20:53:40 +0000 (20:53 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Apr 2016 20:53:40 +0000 (20:53 +0000)
Join the two paths for this macro.  At the end of the day, the difference was
that MIPS and ARM on Apple have different behaviour.  This is a setup change to
remove an instance of -Wexpansion-to-defined.  NFC.

llvm-svn: 266913

libunwind/src/config.h

index ecc0a6b..6ef8c7f 100644 (file)
     }
   #endif
 
-  #define _LIBUNWIND_BUILD_ZERO_COST_APIS (defined(__i386__) || \
-                                           defined(__x86_64__) || \
-                                           defined(__arm64__) || \
-                                           defined(__mips__))
   #define _LIBUNWIND_BUILD_SJLJ_APIS      defined(__arm__)
   #define _LIBUNWIND_SUPPORT_FRAME_APIS   (defined(__i386__) || \
                                            defined(__x86_64__))
     abort();
   }
 
-  #define _LIBUNWIND_BUILD_ZERO_COST_APIS (defined(__i386__) || \
-                                           defined(__x86_64__) || \
-                                           defined(__arm__) || \
-                                           defined(__aarch64__))
   #define _LIBUNWIND_BUILD_SJLJ_APIS      0
   #define _LIBUNWIND_SUPPORT_FRAME_APIS   (defined(__i386__) || \
                                            defined(__x86_64__))
   #define _LIBUNWIND_SUPPORT_DWARF_INDEX _LIBUNWIND_SUPPORT_DWARF_UNWIND
 #endif
 
+#define _LIBUNWIND_BUILD_ZERO_COST_APIS                                        \
+  (defined(__i386__) || defined(__x86_64__) ||                                 \
+   (!defined(__APPLE__) && defined(__arm__)) ||                                \
+   (defined(__arm64__) || defined(__aarch64__)) ||                             \
+   (defined(__APPLE__) && defined(__mips__)))
 
 // Macros that define away in non-Debug builds
 #ifdef NDEBUG