HomePhabricator

[libunwind] Clean up __arm64__

Authored by MaskRay on Apr 9 2020, 2:09 PM.

Description

[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

Details

Committed
MaskRayApr 9 2020, 3:46 PM
Reviewer
Restricted Project
Differential Revision
D77829: [libunwind] Clean up __arm64__
Parents
rGa79b2fc44bfd: Add pass to strip debug info from MIR
Branches
Unknown
Tags
Unknown