Since I think we are all agree that linkerscript should create sections by itself
(if SECTIONS command is present),
then we might want to reuse the OutputSectionFactory (D19976 already do that now),
so this patch moves it out from writer cpp file for that purpose.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This is probably towards the right direction, but let's hold on until D19976 is settled.
ELF/OutputSections.h | ||
---|---|---|
617–621 ↗ | (On Diff #56292) | This class (actually a struct) doesn't know how to create output sections. You have moved the comment to a wrong place. |
622 ↗ | (On Diff #56292) | I'd type it to ELFT rather than Is64Bits. |
Comment Actions
Comment Actions
- Rebased.
- Split declaration and definition to cpp/h files for OutputSectionFactory and DenseMapInfo<lld::elf::SectionKey<Is64Bits>>.
Comment Actions
LGTM
ELF/OutputSections.cpp | ||
---|---|---|
1812–1824 ↗ | (On Diff #63512) | Add blank lines between function definitions. |
ELF/OutputSections.h | ||
735 ↗ | (On Diff #63512) | Remove comment. |