[PATCH] D62381: Use SymbolTable::insert() to implement --trace.
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 08:20:31 PDT 2019
MaskRay added inline comments.
================
Comment at: lld/ELF/Driver.cpp:1403
// or DSOs, so we conservatively mark them as address-significant.
for (Symbol *S : Symtab->getSymbols())
+ if (!S->isPlaceholder() && S->includeInDynsym())
----------------
grimar wrote:
> grimar wrote:
> > Should we filter out placeholder symbols returned by `getSymbols` somehow instead?
> I am thinking about using llvm iterators for example. Just do not sure that spreading `!S->isPlaceholder()` around looks fine.
Something like `getNonPlaceholderSymbols()` based on `llvm::make_filter_range`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62381/new/
https://reviews.llvm.org/D62381
More information about the llvm-commits
mailing list