diff options
author | Xing Xue <xingxue@outlook.com> | 2022-04-13 11:29:37 -0400 |
---|---|---|
committer | Xing Xue <xingxue@outlook.com> | 2022-04-13 11:29:37 -0400 |
commit | 9c0152cda35f58ad9916b698c7a645d4a4dfeaf2 (patch) | |
tree | 32ac06aa17a5c5cee7ac12b69f5d4a2d434edcef /libunwind | |
parent | 4bf3b7dc929c8288e9e5631978ef060d9140b251 (diff) | |
download | llvm-9c0152cda35f58ad9916b698c7a645d4a4dfeaf2.zip llvm-9c0152cda35f58ad9916b698c7a645d4a4dfeaf2.tar.gz llvm-9c0152cda35f58ad9916b698c7a645d4a4dfeaf2.tar.bz2 |
[libunwind][AIX] implementation of the unwinder for AIX
Summary:
This is an add-on patch to address comments.
- Replace #elif in file <assembly.h> with #else as suggested;
- Reversed the indentation changes in the main patch.
Differential Revision: https://reviews.llvm.org/D100132
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/src/assembly.h | 2 | ||||
-rw-r--r-- | libunwind/src/config.h | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h index 9554ca8..fb07d04 100644 --- a/libunwind/src/assembly.h +++ b/libunwind/src/assembly.h @@ -209,7 +209,7 @@ #if defined(__powerpc64__) #define VBYTE_LEN 8 #define CSECT_ALIGN 3 -#elif defined(__ppc__) +#else #define VBYTE_LEN 4 #define CSECT_ALIGN 2 #endif diff --git a/libunwind/src/config.h b/libunwind/src/config.h index 7fd6b73..e751860 100644 --- a/libunwind/src/config.h +++ b/libunwind/src/config.h @@ -60,13 +60,13 @@ #define _LIBUNWIND_EXPORT #define _LIBUNWIND_HIDDEN #else -#if !defined(__ELF__) && !defined(__MACH__) && !defined(_AIX) -#define _LIBUNWIND_EXPORT __declspec(dllexport) -#define _LIBUNWIND_HIDDEN -#else -#define _LIBUNWIND_EXPORT __attribute__((visibility("default"))) -#define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden"))) -#endif + #if !defined(__ELF__) && !defined(__MACH__) && !defined(_AIX) + #define _LIBUNWIND_EXPORT __declspec(dllexport) + #define _LIBUNWIND_HIDDEN + #else + #define _LIBUNWIND_EXPORT __attribute__((visibility("default"))) + #define _LIBUNWIND_HIDDEN __attribute__((visibility("hidden"))) + #endif #endif #define STR(a) #a |