Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXing Xue <xingxue@outlook.com>2022-04-13 18:29:37 +0300
committerXing Xue <xingxue@outlook.com>2022-04-13 18:29:37 +0300
commit9c0152cda35f58ad9916b698c7a645d4a4dfeaf2 (patch)
tree32ac06aa17a5c5cee7ac12b69f5d4a2d434edcef /libunwind
parent4bf3b7dc929c8288e9e5631978ef060d9140b251 (diff)
[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.h2
-rw-r--r--libunwind/src/config.h14
2 files changed, 8 insertions, 8 deletions
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h
index 9554ca8cc62b..fb07d04071af 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 7fd6b7334053..e751860bd936 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