clang-cl: Expose the -flto option
authorHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:00:57 +0000 (21:00 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 4 Oct 2016 21:00:57 +0000 (21:00 +0000)
commit02d03befb92d4613994a5be23effa5650116cf16
tree3687c47f293307384b573bcc59d3109daad7f1a0
parent7c7ee89b01e995f03cd792dd106648e47457b56c
clang-cl: Expose the -flto option

We could hook up /GL as an alias for -flto, but that might be
confusing, as clang-cl in that mode would not be drop-in compatible
with cl.exe /GL, as it requires the linker to be lld.

Exposing -flto seems like a less confusing way to expose this
functionality.

llvm-svn: 283255
clang/include/clang/Driver/Options.td
clang/test/Driver/cl-options.c