diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index a9235c073125..4cb1406f5beb 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -1347,3 +1347,16 @@ template StringRef elf::getOutputSectionName(InputSectionBase template StringRef elf::getOutputSectionName(InputSectionBase *); template StringRef elf::getOutputSectionName(InputSectionBase *); template StringRef elf::getOutputSectionName(InputSectionBase *); + +template void elf::reportDiscarded( + InputSectionBase *, + const std::unique_ptr> &); +template void elf::reportDiscarded( + InputSectionBase *, + const std::unique_ptr> &); +template void elf::reportDiscarded( + InputSectionBase *, + const std::unique_ptr> &); +template void elf::reportDiscarded( + InputSectionBase *, + const std::unique_ptr> &);