summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/LinkerScript.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index f5f85902ba3..142fd2a7670 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -114,8 +114,11 @@ struct InputSectionDescription : BaseCommand {
SortSectionPolicy SortOuter = SortSectionPolicy::Default;
SortSectionPolicy SortInner = SortSectionPolicy::Default;
- // Pairs of section regex and files excluded.
- std::vector<SectionPattern> SectionPatterns;
+ // Input sections that matches at lesat one of SectionPatterns
+ // will be associated with this InputSectionDescription.
+ // We use std::list instead of std::vector because SectionPattern
+ // do not support move assignment.
+ std::list<SectionPattern> SectionPatterns;
std::vector<InputSectionData *> Sections;
};
OpenPOWER on IntegriCloud