[PATCH] D105786: [lld-macho][nfc] Avoid using std::map for PlatformKinds

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 11 13:51:09 PDT 2021


int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a reviewer: gkm.
Herald added a project: lld-macho.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The mappings we were using had a small number of keys, so a vector is
probably better. This allows us to remove the last usage of std::map in
our codebase.

I also used `removeSimulator` to simplify the code a bit further.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105786

Files:
  lld/MachO/Driver.cpp
  lld/MachO/Driver.h
  lld/MachO/InputFiles.cpp
  lld/MachO/InputFiles.h
  lld/MachO/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105786.357818.patch
Type: text/x-patch
Size: 5192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210711/d9c88faa/attachment.bin>


More information about the llvm-commits mailing list