summaryrefslogtreecommitdiff
path: root/lib/Driver/ToolChains/CommonArgs.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2018-12-17 19:30:46 +0000
committerAlex Lorenz <arphaman@gmail.com>2018-12-17 19:30:46 +0000
commit468c31a4de61378fca7ab17718d3bce6afa10a38 (patch)
treeb84138b93f49acd5a51f7ad1c55bfa88d5c914c5 /lib/Driver/ToolChains/CommonArgs.cpp
parent20b6772f9f70f3fce39ec18a0e25ba85aff094fe (diff)
downloadclang-468c31a4de61378fca7ab17718d3bce6afa10a38.tar.gz
[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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ToolChains/CommonArgs.cpp')
-rw-r--r--lib/Driver/ToolChains/CommonArgs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains/CommonArgs.cpp b/lib/Driver/ToolChains/CommonArgs.cpp
index 2bdff39f0d..a0762a7cca 100644
--- a/lib/Driver/ToolChains/CommonArgs.cpp
+++ b/lib/Driver/ToolChains/CommonArgs.cpp
@@ -271,7 +271,7 @@ std::string tools::getCPUName(const ArgList &Args, const llvm::Triple &T,
case llvm::Triple::aarch64:
case llvm::Triple::aarch64_be:
- return aarch64::getAArch64TargetCPU(Args, A);
+ return aarch64::getAArch64TargetCPU(Args, T, A);
case llvm::Triple::arm:
case llvm::Triple::armeb: