[lld] r298087 - [ELF] - Detemplate findSection() global static method. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 06:43:25 PDT 2017


Author: grimar
Date: Fri Mar 17 08:43:24 2017
New Revision: 298087

URL: http://llvm.org/viewvc/llvm-project?rev=298087&view=rev
Log:
[ELF] - Detemplate findSection() global static method. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=298087&r1=298086&r2=298087&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Fri Mar 17 08:43:24 2017
@@ -1712,7 +1712,6 @@ readCuList(DWARFContext &Dwarf, InputSec
   return Ret;
 }
 
-template <class ELFT>
 static InputSectionBase *findSection(ArrayRef<InputSectionBase *> Arr,
                                      uint64_t Offset) {
   for (InputSectionBase *S : Arr)
@@ -1736,7 +1735,7 @@ readAddressArea(DWARFContext &Dwarf, Inp
         Sec->template getFile<ELFT>()->getSections();
 
     for (std::pair<uint64_t, uint64_t> &R : Ranges)
-      if (InputSectionBase *S = findSection<ELFT>(Sections, R.first))
+      if (InputSectionBase *S = findSection(Sections, R.first))
         Ret.push_back({S, R.first - S->getOffsetInFile(),
                        R.second - S->getOffsetInFile(), CurrentCU});
     ++CurrentCU;




More information about the llvm-commits mailing list