[PATCH] D105641: [lld-macho][nfc] Create OutputSections earlier
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 8 09:33:00 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.
... and set `InputSection::parent` to point to them. This makes
it possible to run ICF on a set of InputSections that spans multiple
OutputSections, since it can avoid merging across OutputSection
boundaries by comparing the parent pointers. This is what LLD-ELF does.
This is a no-op for now, but it paves the way for having ICF fold e.g.
the unwind info and LSDA sections.
Additionally, it should make it easier to implement the `section$start$`
symbols.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D105641
Files:
lld/MachO/ConcatOutputSection.cpp
lld/MachO/ConcatOutputSection.h
lld/MachO/Driver.cpp
lld/MachO/InputSection.cpp
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/UnwindInfoSection.cpp
lld/MachO/Writer.cpp
lld/MachO/Writer.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105641.357254.patch
Type: text/x-patch
Size: 8707 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210708/0cbc7d78/attachment.bin>
More information about the llvm-commits
mailing list