mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-18 21:38:10 +00:00
[libunwind] Clean up __arm64__
`__aarch64__` is defined for the target (since the beginning of arm64 support: clang 3.5). `__arm64__` is only defined for the Darwin OS on AArch64. `defined(__aarch64__) || defined(__arm64__)` can be simplied as `defined(__aarch64__)` Darwin AArch64 uses %% as the assembly separator (see AArch64MCAsmInfo.cpp). Make the intention explicit in src/assembly.h With this change, the libunwind code base has no reference of `__arm64__`/`__arm64`. Reviewed By: #libunwind, ldionne, mstorsjo Differential Revision: https://reviews.llvm.org/D77829
This commit is contained in:
parent
a79b2fc44b
commit
f3d460ce58
@ -557,7 +557,7 @@ Lnovec:
|
||||
lwz %r3, 20(%r3) // do r3 last
|
||||
bctr
|
||||
|
||||
#elif defined(__arm64__) || defined(__aarch64__)
|
||||
#elif defined(__aarch64__)
|
||||
|
||||
//
|
||||
// void libunwind::Registers_arm64::jumpto()
|
||||
|
@ -697,7 +697,7 @@ DEFINE_LIBUNWIND_FUNCTION(__unw_getcontext)
|
||||
blr
|
||||
|
||||
|
||||
#elif defined(__arm64__) || defined(__aarch64__)
|
||||
#elif defined(__aarch64__)
|
||||
|
||||
//
|
||||
// extern int __unw_getcontext(unw_context_t* thread_state)
|
||||
|
@ -56,7 +56,7 @@ struct libgcc_object_info {
|
||||
__attribute__((visibility("default"))) const char sym##_tmp42 = 0; \
|
||||
extern const char sym##_tmp43 __asm("$ld$hide$os4.3$_" #sym ); \
|
||||
__attribute__((visibility("default"))) const char sym##_tmp43 = 0;
|
||||
#elif defined(__arm64__)
|
||||
#elif defined(__aarch64__)
|
||||
#define NOT_HERE_BEFORE_10_6(sym)
|
||||
#define NEVER_HERE(sym)
|
||||
#else
|
||||
|
@ -28,7 +28,7 @@
|
||||
#ifdef _ARCH_PWR8
|
||||
#define PPC64_HAS_VMX
|
||||
#endif
|
||||
#elif defined(__arm64__)
|
||||
#elif defined(__APPLE__) && defined(__aarch64__)
|
||||
#define SEPARATOR %%
|
||||
#else
|
||||
#define SEPARATOR ;
|
||||
|
@ -102,7 +102,7 @@
|
||||
#if defined(__i386__) || defined(__x86_64__) || \
|
||||
defined(__ppc__) || defined(__ppc64__) || defined(__powerpc64__) || \
|
||||
(!defined(__APPLE__) && defined(__arm__)) || \
|
||||
(defined(__arm64__) || defined(__aarch64__)) || \
|
||||
defined(__aarch64__) || \
|
||||
defined(__mips__) || \
|
||||
defined(__riscv)
|
||||
#if !defined(_LIBUNWIND_BUILD_SJLJ_APIS)
|
||||
|
Loading…
Reference in New Issue
Block a user