Make -mno-outline pass -enable-machine-outliner=never to ld in LTO
authorJessica Paquette <jpaquette@apple.com>
Tue, 26 Mar 2019 21:22:42 +0000 (21:22 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 26 Mar 2019 21:22:42 +0000 (21:22 +0000)
commit55d495475c955384fdc0c4a18b5670ed8b1dedcf
treeee4180aef32d074156fe5c17d3143676e2e8aecc
parent982726ea010fda10ecb87a851ed08a2df740c05b
Make -mno-outline pass -enable-machine-outliner=never to ld in LTO

Since AArch64 has default outlining behaviour, we need to make sure that
-mno-outline is actually passed along to the linker in this case. Otherwise,
it will run by default on minsize functions even when -mno-outline is specified.

Also fix the darwin-ld test for this, which wasn't actually doing anything.

llvm-svn: 357031
clang/lib/Driver/ToolChains/Darwin.cpp
clang/test/Driver/darwin-ld.c