From f08b592390c745290100aff8757b00d2ee5db264 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Tue, 14 Mar 2017 09:19:34 +0000 Subject: [ELF] - Remove unnecessary template #2. NFC. llvm-svn: 297718 --- lld/ELF/OutputSections.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lld/ELF/OutputSections.cpp') diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp index 8f6078fbb29..b7368f92d8c 100644 --- a/lld/ELF/OutputSections.cpp +++ b/lld/ELF/OutputSections.cpp @@ -330,18 +330,18 @@ static bool canMergeToProgbits(unsigned Type) { Type == SHT_NOTE; } -template 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()->getName()); + IS->File->getName()); } template void OutputSectionFactory::addInputSec(InputSectionBase *IS, StringRef OutsecName) { if (!IS->Live) { - reportDiscarded(IS); + reportDiscarded(IS); return; } -- cgit v1.2.3