diff options
Diffstat (limited to 'lld/ELF/OutputSections.cpp')
-rw-r--r-- | lld/ELF/OutputSections.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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 <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; } |