]> granicus.if.org Git - clang/commit
[MachineOutliner] Properly pass -moutline along to the toolchain
authorJessica Paquette <jpaquette@apple.com>
Fri, 6 Jul 2018 22:24:56 +0000 (22:24 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 6 Jul 2018 22:24:56 +0000 (22:24 +0000)
commitf3ac792d41b6b98ea71ee4b433dcee005be7922e
tree8faa3a59a8c607ff356005b80677fc21ab0b3b75
parent4ad65cd262150f7e5930824cc68afb528cff515f
[MachineOutliner] Properly pass -moutline along to the toolchain

This moves the LTO-specific code for outlining from ToolChains/Clang.cpp to
ToolChains/Darwin.cpp. Passing -mllvm flags isn't sufficient for making sure
that the specified pass will actually run in LTO. This makes sure that when
-moutline is passed, the MachineOutliner will actually be added to the LTO
pass pipeline as expected.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336471 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
lib/Driver/ToolChains/Darwin.cpp
test/Driver/aarch64-outliner.c
test/Driver/darwin-ld.c