[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
Wed Apr 1 20:42:23 PDT 2020
int3 marked an inline comment as done.
int3 added inline comments.
================
Comment at: lld/MachO/Writer.cpp:237
+static void sortByOrder(MutableArrayRef<InputSection *> in,
+ llvm::function_ref<uint32_t(InputSection *s)> order) {
+ std::vector<std::pair<uint32_t, InputSection *>> v;
----------------
int3 wrote:
> ruiu wrote:
> > You are always passing `sectionOrder` function as the second argument, so it looks like you can eliminate the second parameter and always using `sectionOrder`.
> as mentioned in the comment below, this is likely sharable with a similar function in lld/ELF... I can factor it out now to make the 2nd parameter actually useful
On second thought, I don't think that really needs to be a standalone function at all. Simplified things...
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