[PATCH] D98559: [lld-macho] Implement -dependency_info

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 19 14:12:07 PDT 2021


oontvoo added inline comments.


================
Comment at: lld/MachO/Driver.h:93
+  // constructed.
+  std::set<std::string> notFounds;
+
----------------
int3 wrote:
> LLVM tries to avoid `std::set` (and `std::map`): https://llvm.org/docs/ProgrammersManual.html#set-like-containers-std-set-smallset-setvector-etc
> 
> In this case we could use a `DenseSet`
I've thought about this, and IIRC DenseSet's doesn't offer the ordering we need.
And I'd rather not have to dump it to a vector and re-sort at the end.
Is there other  ds we could use?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98559/new/

https://reviews.llvm.org/D98559



More information about the llvm-commits mailing list