[clang][driver] Use the provided arch name for a Darwin target triple
authorAlex Lorenz <arphaman@gmail.com>
Mon, 26 Apr 2021 17:56:30 +0000 (10:56 -0700)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 26 Apr 2021 18:31:50 +0000 (11:31 -0700)
commit6cc62043c8bf4daa27664a2e1674abbe8d0492c6
treec8ff6a05a9e185d0df691f95d8f125982962e36d
parent077fe0f7398c4e1b1a45a9f012c634f13d4118ca
[clang][driver] Use the provided arch name for a Darwin target triple

This ensures that the Darwin driver uses a consistent target triple
representation when the triple is printed out to the user.

Differential Revision: https://reviews.llvm.org/D100807
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/aarch64-cpus.c
clang/test/Driver/arm64_32-link.c
clang/test/Driver/darwin-version.c
clang/test/Driver/default-toolchain.c