[lld-macho][nfc] Rename MergedOutputSection to ConcatOutputSection
authorJez Ng <jezng@fb.com>
Tue, 25 May 2021 18:57:16 +0000 (14:57 -0400)
committerJez Ng <jezng@fb.com>
Tue, 25 May 2021 18:58:29 +0000 (14:58 -0400)
commit33706191d88d34382e07c48ff09fe639fae5881d
tree850626d0d6dc3078d0b585d46f3ef39c32f03e47
parent9cc0d893f7fc4d0ed5dfb053bc38cab832f2f88f
[lld-macho][nfc] Rename MergedOutputSection to ConcatOutputSection

The ELF format has the concept of merge sections (marked by SHF_MERGE),
which contain data that can be safely deduplicated. The Mach-O
equivalents are called literal sections (marked by S_CSTRING_LITERALS or
S_{4,8,16}BYTE_LITERALS). While the Mach-O format doesn't use the word
'merge', to avoid confusion, I've renamed our MergedOutputSection to
ConcatOutputSection. I believe it's a more descriptive name too.

This renaming sets the stage for {D102964}.

Reviewed By: #lld-macho, alexshap

Differential Revision: https://reviews.llvm.org/D102971
lld/MachO/CMakeLists.txt
lld/MachO/ConcatOutputSection.cpp [moved from lld/MachO/MergedOutputSection.cpp with 96% similarity]
lld/MachO/ConcatOutputSection.h [moved from lld/MachO/MergedOutputSection.h with 90% similarity]
lld/MachO/OutputSection.h
lld/MachO/OutputSegment.cpp
lld/MachO/Symbols.cpp
lld/MachO/SyntheticSections.cpp
lld/MachO/SyntheticSections.h
lld/MachO/UnwindInfoSection.cpp
lld/MachO/UnwindInfoSection.h
lld/MachO/Writer.cpp