[PATCH] D76839: [lld-macho] Extend SyntheticSections to cover all segment load commands
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 01:01:57 PDT 2020
int3 marked an inline comment as done.
int3 added inline comments.
================
Comment at: lld/MachO/Writer.cpp:225-234
+static void sortByOrder(MutableArrayRef<InputSection *> in,
+ llvm::function_ref<uint32_t(InputSection *s)> order) {
+ std::vector<std::pair<uint32_t, InputSection *>> v;
+ for (InputSection *s : in)
+ v.push_back({order(s), s});
+ llvm::stable_sort(v, less_first());
+
----------------
this was copypasted from the ELF implementation; we may want to factor it out into `Common/` later
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76839/new/
https://reviews.llvm.org/D76839
More information about the llvm-commits
mailing list