[lld] r263862 - [LTO] Ignore -plugin/-plugin-opt options.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 19 15:46:16 PDT 2016


On Sat, Mar 19, 2016 at 12:05 PM, James Molloy <james at jamesmolloy.co.uk> wrote:
> Hi Davide,
>
> -plugin-opt is passed when the user attempts to change the LTO behaviour -
> for example overriding the codegen option level, or passing a backend option
> to LLVM. It being ignored silently will surely cause much head scratching
> down the line.
>
> Can we at least get a diagnostic with the intended alternative listed?
>

Currently lld doesn't pass any option to the backend but it definitely
will in the near future.
Just to give you a little bit more context: currently I'm passing this
option to facilitate my testing of -flto. There are still missing
pieces in LTO support, so you can see this commit more as a
convenience for us (us being the people working on lld, in particular
on LTO).

My idea is to introduce -lto-opt for lld (because there's no plugin)
but to make the transition smoother for existing users alias that
option to -plugin-opt. Hope this makes sense.

Thanks,

--
Davide


More information about the llvm-commits mailing list