[PATCH] D64461: [lld-link] implement -thinlto-index-only

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 17:45:07 PDT 2019


inglorion created this revision.
inglorion added reviewers: ruiu, tejohnson, pcc, rnk.
Herald added subscribers: arphaman, dexonsmith, steven_wu, mehdi_amini.
Herald added a project: LLVM.

This implements -thinlto-index-only, -thinlto-index-only:,
and -thinlto-emit-imports-files options in lld-link. They are
analogous to their counterparts in ld.lld: -thinlto-index-only
causes us to perform ThinLTO's thin link and write index files,
but not perform code generation. -thinlto-index-only: does the
same, but also writes a text file listing the native object
files expected to be generated. -thinlto-emit-imports-files
creates a text file next to each index file, listing the files
to import from.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64461

Files:
  lld/COFF/Config.h
  lld/COFF/Driver.cpp
  lld/COFF/LTO.cpp
  lld/COFF/LTO.h
  lld/COFF/Options.td
  lld/test/COFF/Inputs/thinlto-empty.ll
  lld/test/COFF/Inputs/thinlto.ll
  lld/test/COFF/thinlto-emit-imports.ll
  lld/test/COFF/thinlto-index-only.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64461.208855.patch
Type: text/x-patch
Size: 12124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/0ec993da/attachment.bin>


More information about the llvm-commits mailing list