forked from OSchip/llvm-project
parent
4cc0cd6556
commit
a4c15c1339
|
@ -908,9 +908,8 @@ static void sortBySymbolsOrder(ArrayRef<OutputSection *> OutputSections) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sort sections by priority.
|
// Sort sections by priority.
|
||||||
for (OutputSection *Base : OutputSections)
|
for (OutputSection *Sec : OutputSections)
|
||||||
if (auto *Sec = dyn_cast<OutputSection>(Base))
|
Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
|
||||||
Sec->sort([&](InputSectionBase *S) { return SectionOrder.lookup(S); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
|
|
Loading…
Reference in New Issue