[PATCH] D77807: [LLD][ELF] Implement --discard-* for cases when -r or --emit-relocs are used.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 22 03:12:43 PDT 2020


ikudrin updated this revision to Diff 259208.
ikudrin marked an inline comment as done.
ikudrin edited the summary of this revision.
ikudrin added a comment.

- Rebased to the tip.
- Moved the initialization of the field `used` back to `markUsedLocalSymbols()`. This makes the handling more local. Made a corresponding note in the comment for that field.
- Dropped the own test in favor of updating tests from D78389 <https://reviews.llvm.org/D78389>.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77807/new/

https://reviews.llvm.org/D77807

Files:
  lld/ELF/Symbols.h
  lld/ELF/Writer.cpp
  lld/test/ELF/emit-relocs-discard-locals.s
  lld/test/ELF/relocatable-discard-locals.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77807.259208.patch
Type: text/x-patch
Size: 9628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200422/b6efd51c/attachment.bin>


More information about the llvm-commits mailing list