[darwin][arm64] use the "cyclone" CPU for Darwin even when `-arch`
authorAlex Lorenz <arphaman@gmail.com>
Mon, 17 Dec 2018 19:30:46 +0000 (19:30 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 17 Dec 2018 19:30:46 +0000 (19:30 +0000)
commit9b20a998236b65d84255a98a5ba5f293c87d57b8
tree1fabab80ac449f6f27c1d4868cbbc3708650025f
parentd18f17e587961d06468f670d7179a466a0f22473
[darwin][arm64] use the "cyclone" CPU for Darwin even when `-arch`
is not specified

The -target option allows the user to specify the build target using LLVM
triple. The triple includes the arch, and so the -arch option is redundant.
This should work just as well without the -arch. However, the driver has a bug
in which it doesn't target the "Cyclone" CPU for darwin if -target is used
without -arch. This commit fixes this issue.

rdar://46743182

Differential Revision: https://reviews.llvm.org/D55731

llvm-svn: 349382
clang/lib/Driver/ToolChains/Arch/AArch64.cpp
clang/lib/Driver/ToolChains/Arch/AArch64.h
clang/lib/Driver/ToolChains/Clang.cpp
clang/lib/Driver/ToolChains/CommonArgs.cpp
clang/test/Driver/aarch64-cpus.c