Handle --plugin-opt= options as alias options.
authorRui Ueyama <ruiu@google.com>
Tue, 22 May 2018 02:53:11 +0000 (02:53 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 22 May 2018 02:53:11 +0000 (02:53 +0000)
commit0dd56dcdd46d818f6eb030818e4a817a5ed901af
treeba82bd508f7e622dbd6d2190cb579c57a5b4339e
parentacd629cd3cae43fac1fbbbd9835b932c818084c6
Handle --plugin-opt= options as alias options.

Previously, we had a loop to iterate over options starting with
`--plugin-opt=` and parse them by hand. But we can make OptTable
do that job for us.

Differential Revision: https://reviews.llvm.org/D47167

llvm-svn: 332935
lld/Common/Args.cpp
lld/ELF/Driver.cpp
lld/ELF/DriverUtils.cpp
lld/ELF/Options.td
lld/test/ELF/lto/opt-level.ll
lld/test/ELF/lto/thinlto-object-suffix-replace.ll
lld/test/ELF/lto/thinlto-prefix-replace.ll