George Rimar 9dc740d0a9 [ELF] - Re-commit r324322 "Use InitTargetOptionsFromCodeGenFlags/ParseCommandLineOptions for parsing LTO options.".
With fix:
Keep logic that ignores -plugin-opt=mcpu=x86-64 -plugin-opt=thinlto,
add checks for those to testcases.

Original commit message:

[ELF] - Use InitTargetOptionsFromCodeGenFlags/ParseCommandLineOptions for parsing LTO options.

gold plugin uses InitTargetOptionsFromCodeGenFlags + 
ParseCommandLineOptions for parsing LTO options.
Patch do the same change for LLD.

Such change helps to avoid parsing/whitelisting LTO
plugin options again on linker side, what can help LLD
to automatically support new -plugin-opt=xxx options
passed.

Differential revision: https://reviews.llvm.org/D42733

llvm-svn: 324340
2018-02-06 12:20:05 +00:00
..
2017-10-27 03:14:09 +00:00
2017-10-27 03:14:09 +00:00
2017-11-17 21:40:38 +00:00
2017-11-17 08:17:21 +00:00
2018-02-01 16:00:46 +00:00
2017-07-18 11:55:35 +00:00
2018-01-30 18:18:59 +00:00
2017-11-04 00:31:04 +00:00
2017-12-26 10:13:10 +00:00
2018-01-16 19:28:28 +00:00

See docs/NewLLD.rst