[lld] [LLD] Add CLASS syntax to SECTIONS (PR #95323)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 14:27:05 PDT 2024
================
@@ -413,6 +422,11 @@ class LinkerScript final {
PotentialSpillSection *tail;
};
llvm::DenseMap<InputSectionBase *, PotentialSpillList> potentialSpillLists;
+
+ // Named lists of input sections that can be collectively referenced in output
+ // section descriptions. Multiple references allow for sections to spill from
+ // one output section to another.
+ llvm::StringMap<SectionClassDesc *> sectionClasses;
----------------
MaskRay wrote:
`DenseMap<CachedHashStringRef, >` or `<StringRef, >`
This header otherwise doesn't use StringMap
https://github.com/llvm/llvm-project/pull/95323
More information about the llvm-commits
mailing list