summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2017-05-11 23:37:55 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2017-05-11 23:37:55 +0000
commit8ff5c41192b40bec23b9255a9afeb29b94c88858 (patch)
treeb307f3032065a3634f186521de97cb305f195864
parent24a5a9058ef974334ae492d8de950b66d0e1d425 (diff)
downloadbcm5719-llvm-8ff5c41192b40bec23b9255a9afeb29b94c88858.tar.gz
bcm5719-llvm-8ff5c41192b40bec23b9255a9afeb29b94c88858.zip
Detemplate compareSections. NFC.
llvm-svn: 302849
-rw-r--r--lld/ELF/Writer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index 8af563f9259..c8f5378aa82 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 <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>::sortSections() {
// a PT_LOAD.
std::stable_sort(OutputSections.begin(), OutputSections.end(),
- compareSections<ELFT>);
+ compareSections);
auto I = OutputSections.begin();
auto E = OutputSections.end();
OpenPOWER on IntegriCloud