[lld] r276155 - Add yet more explicit template instantiations. These were always needed

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 20 11:47:34 PDT 2016


Author: chandlerc
Date: Wed Jul 20 13:47:33 2016
New Revision: 276155

URL: http://llvm.org/viewvc/llvm-project?rev=276155&view=rev
Log:
Add yet more explicit template instantiations. These were always needed
but things happened to work on some platforms prior to r276133. This
should be the complete set (I hope).

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=276155&r1=276154&r2=276155&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Jul 20 13:47:33 2016
@@ -1347,3 +1347,16 @@ template StringRef elf::getOutputSection
 template StringRef elf::getOutputSectionName<ELF32BE>(InputSectionBase<ELF32BE> *);
 template StringRef elf::getOutputSectionName<ELF64LE>(InputSectionBase<ELF64LE> *);
 template StringRef elf::getOutputSectionName<ELF64BE>(InputSectionBase<ELF64BE> *);
+
+template void elf::reportDiscarded<ELF32LE>(
+    InputSectionBase<ELF32LE> *,
+    const std::unique_ptr<elf::ObjectFile<ELF32LE>> &);
+template void elf::reportDiscarded<ELF32BE>(
+    InputSectionBase<ELF32BE> *,
+    const std::unique_ptr<elf::ObjectFile<ELF32BE>> &);
+template void elf::reportDiscarded<ELF64LE>(
+    InputSectionBase<ELF64LE> *,
+    const std::unique_ptr<elf::ObjectFile<ELF64LE>> &);
+template void elf::reportDiscarded<ELF64BE>(
+    InputSectionBase<ELF64BE> *,
+    const std::unique_ptr<elf::ObjectFile<ELF64BE>> &);




More information about the llvm-commits mailing list