[lld] r297718 - [ELF] - Remove unnecessary template #2. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 02:19:34 PDT 2017
Author: grimar
Date: Tue Mar 14 04:19:34 2017
New Revision: 297718
URL: http://llvm.org/viewvc/llvm-project?rev=297718&view=rev
Log:
[ELF] - Remove unnecessary template #2. NFC.
Modified:
lld/trunk/ELF/OutputSections.cpp
Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=297718&r1=297717&r2=297718&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Tue Mar 14 04:19:34 2017
@@ -330,18 +330,18 @@ static bool canMergeToProgbits(unsigned
Type == SHT_NOTE;
}
-template <class ELFT> static void reportDiscarded(InputSectionBase *IS) {
+static void reportDiscarded(InputSectionBase *IS) {
if (!Config->PrintGcSections)
return;
message("removing unused section from '" + IS->Name + "' in file '" +
- IS->getFile<ELFT>()->getName());
+ IS->File->getName());
}
template <class ELFT>
void OutputSectionFactory::addInputSec(InputSectionBase *IS,
StringRef OutsecName) {
if (!IS->Live) {
- reportDiscarded<ELFT>(IS);
+ reportDiscarded(IS);
return;
}
More information about the llvm-commits
mailing list