[lld] r302849 - Detemplate compareSections. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 16:37:55 PDT 2017


Author: rafael
Date: Thu May 11 18:37:55 2017
New Revision: 302849

URL: http://llvm.org/viewvc/llvm-project?rev=302849&view=rev
Log:
Detemplate compareSections. NFC.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=302849&r1=302848&r2=302849&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Thu May 11 18:37:55 2017
@@ -742,7 +742,6 @@ static bool compareSectionsNonScript(con
 }
 
 // Output section ordering is determined by this function.
-template <class ELFT>
 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 <class ELFT> void Writer<ELFT>:
   //    a PT_LOAD.
 
   std::stable_sort(OutputSections.begin(), OutputSections.end(),
-                   compareSections<ELFT>);
+                   compareSections);
 
   auto I = OutputSections.begin();
   auto E = OutputSections.end();




More information about the llvm-commits mailing list