[PATCH] D62381: Use SymbolTable::insert() to implement --trace.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 06:27:29 PDT 2019


grimar 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:
> 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.


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