[PATCH] D119372: [lld-macho] Unset ExportDynamic where possible for LTO

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 13:14:15 PST 2022


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

By unsetting this property, we are now able to internalize more symbols
during LTO. I compared the output of `-save-temps` for both LLD and
ld64, and we now match ld64's behavior as far as `lto-internalize.ll` is
concerned.

(Thanks @smeenai for working on an initial version of this diff!)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119372

Files:
  lld/MachO/Driver.cpp
  lld/MachO/LTO.cpp
  lld/test/MachO/lto-internalize.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119372.407262.patch
Type: text/x-patch
Size: 4549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/2d825296/attachment.bin>


More information about the llvm-commits mailing list