[ELF] - Remove unnecessary template #2. NFC.

llvm-svn: 297718
This commit is contained in:
George Rimar 2017-03-14 09:19:34 +00:00
parent 788fe38f99
commit f08b592390
1 changed files with 3 additions and 3 deletions

View File

@ -330,18 +330,18 @@ static bool canMergeToProgbits(unsigned Type) {
Type == SHT_NOTE; Type == SHT_NOTE;
} }
template <class ELFT> static void reportDiscarded(InputSectionBase *IS) { static void reportDiscarded(InputSectionBase *IS) {
if (!Config->PrintGcSections) if (!Config->PrintGcSections)
return; return;
message("removing unused section from '" + IS->Name + "' in file '" + message("removing unused section from '" + IS->Name + "' in file '" +
IS->getFile<ELFT>()->getName()); IS->File->getName());
} }
template <class ELFT> template <class ELFT>
void OutputSectionFactory::addInputSec(InputSectionBase *IS, void OutputSectionFactory::addInputSec(InputSectionBase *IS,
StringRef OutsecName) { StringRef OutsecName) {
if (!IS->Live) { if (!IS->Live) {
reportDiscarded<ELFT>(IS); reportDiscarded(IS);
return; return;
} }