Add conditions for PPC to libunwind. Fixes PR22200. Thanks to Jeremy for the bug...
authorMarshall Clow <mclow.lists@gmail.com>
Wed, 2 Nov 2016 16:39:55 +0000 (16:39 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Wed, 2 Nov 2016 16:39:55 +0000 (16:39 +0000)
llvm-svn: 285831

libunwind/src/config.h

index f61ded8..4e4dd99 100644 (file)
 #define _LIBUNWIND_BUILD_SJLJ_APIS 0
 #endif
 
-#if defined(__i386__) || defined(__x86_64__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__)
 #define _LIBUNWIND_SUPPORT_FRAME_APIS 1
 #else
 #define _LIBUNWIND_SUPPORT_FRAME_APIS 0
 #endif
 
 #if defined(__i386__) || defined(__x86_64__) ||                                \
+    defined(__ppc__) || defined(__ppc64__) ||                                  \
     (!defined(__APPLE__) && defined(__arm__)) ||                               \
     (defined(__arm64__) || defined(__aarch64__)) ||                            \
     (defined(__APPLE__) && defined(__mips__))