From 8ff5c41192b40bec23b9255a9afeb29b94c88858 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 11 May 2017 23:37:55 +0000 Subject: [PATCH] Detemplate compareSections. NFC. llvm-svn: 302849 --- lld/ELF/Writer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 8af563f..c8f5378 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -742,7 +742,6 @@ static bool compareSectionsNonScript(const OutputSection *A, } // Output section ordering is determined by this function. -template static bool compareSections(const OutputSection *A, const OutputSection *B) { // For now, put sections mentioned in a linker script // first. Sections not on linker script will have a SectionIndex of @@ -1040,7 +1039,7 @@ template void Writer::sortSections() { // a PT_LOAD. std::stable_sort(OutputSections.begin(), OutputSections.end(), - compareSections); + compareSections); auto I = OutputSections.begin(); auto E = OutputSections.end(); -- 2.7.4