[libunwind] 9c0152c - [libunwind][AIX] implementation of the unwinder for AIX
Xing Xue via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 13 08:35:10 PDT 2022
Author: Xing Xue
Date: 2022-04-13T11:29:37-04:00
New Revision: 9c0152cda35f58ad9916b698c7a645d4a4dfeaf2
URL: https://github.com/llvm/llvm-project/commit/9c0152cda35f58ad9916b698c7a645d4a4dfeaf2
DIFF: https://github.com/llvm/llvm-project/commit/9c0152cda35f58ad9916b698c7a645d4a4dfeaf2.diff
LOG: [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
Added:
Modified:
libunwind/src/assembly.h
libunwind/src/config.h
Removed:
################################################################################
diff --git a/libunwind/src/assembly.h b/libunwind/src/assembly.h
index 9554ca8cc62b1..fb07d04071af3 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 7fd6b7334053e..e751860bd936e 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
More information about the cfe-commits
mailing list