[PATCH] D61420: [ELF] --plugin-opt=thinlto-index-only: create empty index if all bitcode files are lazy

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 20:36:00 PDT 2019


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

The gold plugin behavior was added in D46034 <https://reviews.llvm.org/D46034>, but it missed the case
when there is no non-lazy bitcode files, e.g.:

ld.lld -shared crti.o crtbeginS.o --start-lib bitcode.o --end-lib ...

crti.o crtbeginS.o are not bitcode.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D61420

Files:
  ELF/LTO.cpp
  ELF/LTO.h
  ELF/SymbolTable.cpp
  test/ELF/lto/thinlto-index-only.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61420.197700.patch
Type: text/x-patch
Size: 3695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190502/cc536f10/attachment.bin>


More information about the llvm-commits mailing list