[PATCH] D124143: [lld-macho] Allow dead_strip to work with autohide symbols that cannot be exported
Vy Nguyen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 07:24:41 PDT 2022
oontvoo added inline comments.
================
Comment at: lld/MachO/MarkLive.cpp:234
// explicitUndefineds code below would handle this automatically.
- assert(!defined->privateExtern &&
- "should have been rejected by driver");
marker->addSym(defined);
continue;
----------------
thakis wrote:
> Should we call addSym for privateExterns? That seems wrong (?)
> Should we call addSym for privateExterns
normally we shouldn't but if a symbol is both private extern and autohide, then i think it should be ok,
relatedly, stray comment should be deleted or moved?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124143/new/
https://reviews.llvm.org/D124143
More information about the llvm-commits
mailing list