[PATCH] D62043: [not for review] preserve debug info in thinlto

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 16 15:55:56 PDT 2019


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

This is a possible way to get LTO to not drop debug information with
rL358069 <https://reviews.llvm.org/rL358069>. It marks native object files generated by LTO as live if
they contain global symbols (which means these symbols are used by
other TUs or exported) so that even if MarkLive cannot see a reference
to the object, its debug information is preserved.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62043

Files:
  lld/ELF/SymbolTable.cpp
  lld/test/ELF/lto/Inputs/structfoo.ll
  lld/test/ELF/lto/keepdbg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62043.199923.patch
Type: text/x-patch
Size: 7054 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190516/ac7e123c/attachment.bin>


More information about the llvm-commits mailing list