[lld][COFF] Add command line options for LTO with new pass manager
authorrojamd <rojamd@users.noreply.github.com>
Thu, 5 Nov 2020 19:41:35 +0000 (14:41 -0500)
committerrojamd <rojamd@users.noreply.github.com>
Thu, 5 Nov 2020 19:41:35 +0000 (14:41 -0500)
commitb79e990f4019c297cbfb62a03b9629d56a37086c
treebeb47eff4e50c6e5dcd5934e2dbe5eb65625dac5
parent5b30d9adc0536eee7fe0f164a550084916899acc
[lld][COFF] Add command line options for LTO with new pass manager

This is more or less a port of rL329598 (D45275) to the COFF linker.
Since there were already LTO-related settings under -opt:, I added
them there instead of new flags.

Differential Revision: https://reviews.llvm.org/D90624
lld/COFF/Config.h
lld/COFF/Driver.cpp
lld/COFF/LTO.cpp
lld/test/COFF/lto-new-pass-manager.ll [new file with mode: 0644]