llvm-project/lld/MachO
Roger Kim f858fba631 [lld][Macho][NFC] Encapsulate priorities map in a priority class
`config->priorities` has been used to hold the intermediate state during the construction of the order in which sections should be laid out. This is not a good place to hold this state since the intermediate state is not a "configuration" for LLD. It should be encapsulated in a class for building a mapping from section to priority (which I created in this diff as the `PriorityBuilder` class).

The same thing is being done for `config->callGraphProfile`.

Reviewed By: #lld-macho, int3

Differential Revision: https://reviews.llvm.org/D122156
2022-03-23 13:57:26 -04:00
..
Arch [lld-macho][nfc] Allow Defined symbols to be placed in binding sections 2022-03-14 22:18:32 -04:00
CMakeLists.txt
ConcatOutputSection.cpp
ConcatOutputSection.h
Config.h [lld][Macho][NFC] Encapsulate priorities map in a priority class 2022-03-23 13:57:26 -04:00
Driver.cpp [lld][Macho][NFC] Encapsulate priorities map in a priority class 2022-03-23 13:57:26 -04:00
Driver.h
DriverUtils.cpp
Dwarf.cpp
Dwarf.h
ExportTrie.cpp Reland "[lld-macho] Avoid using bump-alloc in TrieBuider"" 2022-03-14 19:33:13 -04:00
ExportTrie.h Reland "[lld-macho] Avoid using bump-alloc in TrieBuider"" 2022-03-14 19:33:13 -04:00
ICF.cpp
ICF.h
InputFiles.cpp [lld-macho][nfc] Have findContainingSubsection take a Section 2022-03-21 07:23:09 -04:00
InputFiles.h [lld-macho][nfc] Have findContainingSubsection take a Section 2022-03-21 07:23:09 -04:00
InputSection.cpp
InputSection.h
LTO.cpp [lld-macho] Set FinalDefinitionInLinkageUnit on most LTO externs 2022-03-15 20:25:06 -04:00
LTO.h
MachOStructs.h
MapFile.cpp
MapFile.h
MarkLive.cpp [lld-macho][nfc] Add comment explaining why a cast<> is safe 2022-03-21 07:23:09 -04:00
MarkLive.h
ObjC.cpp
ObjC.h
Options.td
OutputSection.cpp
OutputSection.h
OutputSegment.cpp
OutputSegment.h
Relocations.cpp
Relocations.h
SectionPriorities.cpp [lld][Macho][NFC] Encapsulate priorities map in a priority class 2022-03-23 13:57:26 -04:00
SectionPriorities.h [lld][Macho][NFC] Encapsulate priorities map in a priority class 2022-03-23 13:57:26 -04:00
SymbolTable.cpp [lld-macho] -flat_namespace for dylibs should make all externs interposable 2022-03-14 22:18:32 -04:00
SymbolTable.h
Symbols.cpp [lld-macho] -flat_namespace for dylibs should make all externs interposable 2022-03-14 22:18:32 -04:00
Symbols.h [lld-macho] -flat_namespace for dylibs should make all externs interposable 2022-03-14 22:18:32 -04:00
SyntheticSections.cpp [lld-macho][nfc] Don't mix file sizes with addresses 2022-03-22 17:52:53 -04:00
SyntheticSections.h [lld-macho][nfc] Allow Defined symbols to be placed in binding sections 2022-03-14 22:18:32 -04:00
Target.cpp
Target.h [lld-macho][nfc] Allow Defined symbols to be placed in binding sections 2022-03-14 22:18:32 -04:00
UnwindInfoSection.cpp
UnwindInfoSection.h
Writer.cpp [lld][Macho][NFC] Encapsulate priorities map in a priority class 2022-03-23 13:57:26 -04:00
Writer.h
ld64-vs-lld.rst