diff options
author | Jez Ng <jezng@fb.com> | 2021-06-11 19:49:52 -0400 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2021-06-11 19:50:08 -0400 |
commit | 7f2ba39b1688230c663986485f605cf8df90f895 (patch) | |
tree | bc282140c604d9b56b18ec5933a26fd846599fc1 /llvm/lib/Support/Signposts.cpp | |
parent | 5d88f2dd947825750d487f91b3b3735d61f7aa8e (diff) | |
download | llvm-7f2ba39b1688230c663986485f605cf8df90f895.zip llvm-7f2ba39b1688230c663986485f605cf8df90f895.tar.gz llvm-7f2ba39b1688230c663986485f605cf8df90f895.tar.bz2 |
[lld-macho][nfc] Move liveness-tracking fields into ConcatInputSection
These fields currently live in the parent InputSection class,
but they should be specific to ConcatInputSection, since the other
InputSection classes (that contain literals) aren't atomically live or
dead -- rather their component string/int literals should have
individual liveness states. (An upcoming diff will add liveness bits for
StringPieces and fixed-sized literals.)
I also factored out some asserts for isCoalescedWeak() in MarkLive.cpp.
We now avoid putting coalesced sections in the `inputSections` vector,
so we don't have to check/assert against it everywhere.
Reviewed By: #lld-macho, thakis
Differential Revision: https://reviews.llvm.org/D103977
Diffstat (limited to 'llvm/lib/Support/Signposts.cpp')
0 files changed, 0 insertions, 0 deletions