[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
NOKEYCHECK=True
GitOrigin-RevId: 9c0152cda35f58ad9916b698c7a645d4a4dfeaf2
diff --git a/src/assembly.h b/src/assembly.h
index 9554ca8..fb07d04 100644
--- a/src/assembly.h
+++ b/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/src/config.h b/src/config.h
index 7fd6b73..e751860 100644
--- a/src/config.h
+++ b/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