diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-20 22:18:47 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-04-20 22:18:47 +0000 |
commit | cb06f7511cd082f2d1c0b51ae363e24fb570e903 (patch) | |
tree | 42bb906cc926a783933b27ff44b6e8f39f9939d0 /libunwind | |
parent | e6f04f3553a9d677fcd4eb955d8eef22784556df (diff) | |
download | bcm5719-llvm-cb06f7511cd082f2d1c0b51ae363e24fb570e903.tar.gz bcm5719-llvm-cb06f7511cd082f2d1c0b51ae363e24fb570e903.zip |
unwind: unify the definition of _LIBUNWIND_SUPPORT_FRAME_APIS
Unify the definition of the _LIBUNWIND_SUPPORT_FRAME_APIS macro. This is in
preparation to remove another instance of -Wexpansion-to-defined. NFC.
llvm-svn: 266926
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/config.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libunwind/src/config.h b/libunwind/src/config.h index 69f5cc1df0a..bf0c5953510 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -40,8 +40,6 @@ #endif #define _LIBUNWIND_BUILD_SJLJ_APIS defined(__arm__) - #define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || \ - defined(__x86_64__)) #define _LIBUNWIND_EXPORT __attribute__((visibility("default"))) #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden"))) #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__) @@ -68,8 +66,6 @@ } #define _LIBUNWIND_BUILD_SJLJ_APIS 0 - #define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || \ - defined(__x86_64__)) #define _LIBUNWIND_EXPORT __attribute__((visibility("default"))) #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden"))) #define _LIBUNWIND_LOG(msg, ...) fprintf(stderr, "libuwind: " msg, __VA_ARGS__) @@ -86,6 +82,8 @@ #endif #endif +#define _LIBUNWIND_SUPPORT_FRAME_APIS (defined(__i386__) || defined(__x86_64__)) + #if defined(__i386__) || defined(__x86_64__) || \ (!defined(__APPLE__) && defined(__arm__)) || \ (defined(__arm64__) || defined(__aarch64__)) || \ |