[PATCH] D129111: [ELF] Optimize getInputSections. NFC

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 5 03:43:09 PDT 2022


peter.smith accepted this revision.
peter.smith added a comment.
This revision is now accepted and ready to land.

LGTM. A small suggestion for the description/commit message.

  In the majority of cases (e.g. orphan sections), an OutputSection has at most one InputSectionDescription (isd). By changing the return type to ArrayRef<InputSection *> we can just reference the isd->sections. For OutputSections with more than one InputSectionDescription we use a caller provided SmallVector to copy the elements as before.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129111



More information about the llvm-commits mailing list