summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Writer.cpp')
-rw-r--r--lld/ELF/Writer.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index dc7ed19baa6..2903664d3af 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1280,11 +1280,11 @@ static void sortSection(OutputSection *Sec,
return;
assert(Sec->SectionCommands.size() == 1);
auto *ISD = cast<InputSectionDescription>(Sec->SectionCommands[0]);
- std::stable_sort(ISD->Sections.begin(), ISD->Sections.end(),
- [](const InputSection *A, const InputSection *B) -> bool {
- return A->File->PPC64SmallCodeModelTocRelocs &&
- !B->File->PPC64SmallCodeModelTocRelocs;
- });
+ llvm::stable_sort(ISD->Sections,
+ [](const InputSection *A, const InputSection *B) -> bool {
+ return A->File->PPC64SmallCodeModelTocRelocs &&
+ !B->File->PPC64SmallCodeModelTocRelocs;
+ });
return;
}
@@ -1453,7 +1453,7 @@ template <class ELFT> void Writer<ELFT>::resolveShfLinkOrder() {
Sec->Type == SHT_ARM_EXIDX)
continue;
- std::stable_sort(Sections.begin(), Sections.end(), compareByFilePosition);
+ llvm::stable_sort(Sections, compareByFilePosition);
for (int I = 0, N = Sections.size(); I < N; ++I)
*ScriptSections[I] = Sections[I];
OpenPOWER on IntegriCloud