[PATCH] D103979: [lld-macho] Have dead-stripping work with literal sections
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 9 10:25:50 PDT 2021
int3 created this revision.
int3 added a reviewer: lld-macho.
Herald added a subscriber: jfb.
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.
Literal sections are not atomically live or dead. Rather,
liveness is tracked for each individual literal they contain. CStrings
have their liveness tracked via a `live` bit in StringPiece, and
fixed-width literals have theirs tracked via a BitVector.
The live-marking code now needs to track the offset within each section
that is to be marked live, in order to identify the literal at that
particular offset.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103979
Files:
lld/MachO/InputSection.cpp
lld/MachO/InputSection.h
lld/MachO/MarkLive.cpp
lld/MachO/SyntheticSections.cpp
lld/test/MachO/dead-strip.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103979.350944.patch
Type: text/x-patch
Size: 10967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210609/7e721993/attachment.bin>
More information about the llvm-commits
mailing list