[PATCH] D67782: [ELF] accept thinlto options without --plugin-opt= prefix

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 18:14:38 PDT 2019


inglorion created this revision.
inglorion added reviewers: tejohnson, ruiu.
Herald added subscribers: llvm-commits, arphaman, dexonsmith, steven_wu, MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.

When support for ThinLTO was first added to lld, the options that
control it were prefixed with --plugin-opt= for compatibility with
an existing implementation as a linker plugin. This change enables
shorter versions of the options to be used, as follows:

  New                              Existing
  -thinlto-emit-imports-files      --plugin-opt=thinlto-emit-imports-files
  -thinlto-index-only              --plugin-opt=thinlto-index-only
  -thinlto-index-only=             --plugin-opt=thinlto-index-only=
  -thinlto-object-suffix-replace=  --plugin-opt=thinlto-object-suffix-replace=
  -thinlto-prefix-replace=         --plugin-opt=thinlto-prefix-replace=
  -lto-obj-path=                   --plugin-opt=obj-path=

The options with the --plugin-opt= prefix have been retained as aliases
for the shorter variants so that they continue to be accepted.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67782

Files:
  lld/ELF/Driver.cpp
  lld/ELF/Options.td
  lld/test/ELF/lto/thinlto-emit-imports.ll
  lld/test/ELF/lto/thinlto-index-file.ll
  lld/test/ELF/lto/thinlto-obj-path.ll
  lld/test/ELF/lto/thinlto-object-suffix-replace.ll
  lld/test/ELF/lto/thinlto-prefix-replace.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67782.220929.patch
Type: text/x-patch
Size: 10338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190920/3df44db6/attachment.bin>


More information about the llvm-commits mailing list