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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 27 03:36:00 PDT 2019


grimar added inline comments.


================
Comment at: lld/ELF/SymbolTable.h:38
 
-  ArrayRef<Symbol *> getSymbols() const { return SymVector; }
+  void forEachSymbol(std::function<void(Symbol *)> Fn) {
+    for (Symbol *Sym : SymVector)
----------------
`llvm::function_ref` should probably be a bit better, btw.


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