File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ template <class ELFT> class ICF {
122
122
123
123
void forEachClass (llvm::function_ref<void (size_t , size_t )> fn);
124
124
125
- std::vector <InputSection *> sections;
125
+ SmallVector <InputSection *, 0 > sections;
126
126
127
127
// We repeat the main loop while `Repeat` is true.
128
128
std::atomic<bool > repeat;
Original file line number Diff line number Diff line change @@ -3482,7 +3482,7 @@ void ARMExidxSyntheticSection::finalizeContents() {
3482
3482
sentinel = executableSections.back ();
3483
3483
// Optionally merge adjacent duplicate entries.
3484
3484
if (config->mergeArmExidx ) {
3485
- std::vector <InputSection *> selectedSections;
3485
+ SmallVector <InputSection *, 0 > selectedSections;
3486
3486
selectedSections.reserve (executableSections.size ());
3487
3487
selectedSections.push_back (executableSections[0 ]);
3488
3488
size_t prev = 0 ;
Original file line number Diff line number Diff line change @@ -1086,7 +1086,7 @@ class ARMExidxSyntheticSection : public SyntheticSection {
1086
1086
1087
1087
// Links to the ARMExidxSections so we can transfer the relocations once the
1088
1088
// layout is known.
1089
- std::vector <InputSection *> exidxSections;
1089
+ SmallVector <InputSection *, 0 > exidxSections;
1090
1090
1091
1091
private:
1092
1092
size_t size = 0 ;
@@ -1095,7 +1095,7 @@ class ARMExidxSyntheticSection : public SyntheticSection {
1095
1095
// InputObjects, we store pointers to the executable sections that need
1096
1096
// .ARM.exidx sections. We can then use the dependentSections of these to
1097
1097
// either find the .ARM.exidx section or know that we need to generate one.
1098
- std::vector <InputSection *> executableSections;
1098
+ SmallVector <InputSection *, 0 > executableSections;
1099
1099
1100
1100
// The executable InputSection with the highest address to use for the
1101
1101
// sentinel. We store separately from ExecutableSections as merging of
Original file line number Diff line number Diff line change @@ -1570,8 +1570,8 @@ template <class ELFT> void Writer<ELFT>::resolveShfLinkOrder() {
1570
1570
1571
1571
// Link order may be distributed across several InputSectionDescriptions.
1572
1572
// Sorting is performed separately.
1573
- std::vector <InputSection **> scriptSections;
1574
- std::vector <InputSection *> sections;
1573
+ SmallVector <InputSection **, 0 > scriptSections;
1574
+ SmallVector <InputSection *, 0 > sections;
1575
1575
for (SectionCommand *cmd : sec->commands ) {
1576
1576
auto *isd = dyn_cast<InputSectionDescription>(cmd);
1577
1577
if (!isd)
You can’t perform that action at this time.
0 commit comments