[lld] r299025 - Remove parameter names from template instantiations to make them compact. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 29 13:15:29 PDT 2017


Author: ruiu
Date: Wed Mar 29 15:15:29 2017
New Revision: 299025

URL: http://llvm.org/viewvc/llvm-project?rev=299025&view=rev
Log:
Remove parameter names from template instantiations to make them compact. NFC.

Modified:
    lld/trunk/ELF/InputSection.cpp

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=299025&r1=299024&r2=299025&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Wed Mar 29 15:15:29 2017
@@ -819,59 +819,47 @@ uint64_t MergeInputSection::getOffset(ui
   return Piece.OutputOff + Addend;
 }
 
-template InputSection::InputSection(elf::ObjectFile<ELF32LE> *F,
-                                    const ELF32LE::Shdr *Header,
-                                    StringRef Name);
-template InputSection::InputSection(elf::ObjectFile<ELF32BE> *F,
-                                    const ELF32BE::Shdr *Header,
-                                    StringRef Name);
-template InputSection::InputSection(elf::ObjectFile<ELF64LE> *F,
-                                    const ELF64LE::Shdr *Header,
-                                    StringRef Name);
-template InputSection::InputSection(elf::ObjectFile<ELF64BE> *F,
-                                    const ELF64BE::Shdr *Header,
-                                    StringRef Name);
-
-template std::string InputSectionBase::getLocation<ELF32LE>(uint64_t Offset);
-template std::string InputSectionBase::getLocation<ELF32BE>(uint64_t Offset);
-template std::string InputSectionBase::getLocation<ELF64LE>(uint64_t Offset);
-template std::string InputSectionBase::getLocation<ELF64BE>(uint64_t Offset);
-
-template void InputSection::writeTo<ELF32LE>(uint8_t *Buf);
-template void InputSection::writeTo<ELF32BE>(uint8_t *Buf);
-template void InputSection::writeTo<ELF64LE>(uint8_t *Buf);
-template void InputSection::writeTo<ELF64BE>(uint8_t *Buf);
+template InputSection::InputSection(elf::ObjectFile<ELF32LE> *,
+                                    const ELF32LE::Shdr *, StringRef);
+template InputSection::InputSection(elf::ObjectFile<ELF32BE> *,
+                                    const ELF32BE::Shdr *, StringRef);
+template InputSection::InputSection(elf::ObjectFile<ELF64LE> *,
+                                    const ELF64LE::Shdr *, StringRef);
+template InputSection::InputSection(elf::ObjectFile<ELF64BE> *,
+                                    const ELF64BE::Shdr *, StringRef);
+
+template std::string InputSectionBase::getLocation<ELF32LE>(uint64_t);
+template std::string InputSectionBase::getLocation<ELF32BE>(uint64_t);
+template std::string InputSectionBase::getLocation<ELF64LE>(uint64_t);
+template std::string InputSectionBase::getLocation<ELF64BE>(uint64_t);
+
+template void InputSection::writeTo<ELF32LE>(uint8_t *);
+template void InputSection::writeTo<ELF32BE>(uint8_t *);
+template void InputSection::writeTo<ELF64LE>(uint8_t *);
+template void InputSection::writeTo<ELF64BE>(uint8_t *);
 
 template elf::ObjectFile<ELF32LE> *InputSectionBase::getFile<ELF32LE>() const;
 template elf::ObjectFile<ELF32BE> *InputSectionBase::getFile<ELF32BE>() const;
 template elf::ObjectFile<ELF64LE> *InputSectionBase::getFile<ELF64LE>() const;
 template elf::ObjectFile<ELF64BE> *InputSectionBase::getFile<ELF64BE>() const;
 
-template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF32LE> *F,
-                                              const ELF32LE::Shdr *Header,
-                                              StringRef Name);
-template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF32BE> *F,
-                                              const ELF32BE::Shdr *Header,
-                                              StringRef Name);
-template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF64LE> *F,
-                                              const ELF64LE::Shdr *Header,
-                                              StringRef Name);
-template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF64BE> *F,
-                                              const ELF64BE::Shdr *Header,
-                                              StringRef Name);
-
-template EhInputSection::EhInputSection(elf::ObjectFile<ELF32LE> *F,
-                                        const ELF32LE::Shdr *Header,
-                                        StringRef Name);
-template EhInputSection::EhInputSection(elf::ObjectFile<ELF32BE> *F,
-                                        const ELF32BE::Shdr *Header,
-                                        StringRef Name);
-template EhInputSection::EhInputSection(elf::ObjectFile<ELF64LE> *F,
-                                        const ELF64LE::Shdr *Header,
-                                        StringRef Name);
-template EhInputSection::EhInputSection(elf::ObjectFile<ELF64BE> *F,
-                                        const ELF64BE::Shdr *Header,
-                                        StringRef Name);
+template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF32LE> *,
+                                              const ELF32LE::Shdr *, StringRef);
+template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF32BE> *,
+                                              const ELF32BE::Shdr *, StringRef);
+template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF64LE> *,
+                                              const ELF64LE::Shdr *, StringRef);
+template MergeInputSection::MergeInputSection(elf::ObjectFile<ELF64BE> *,
+                                              const ELF64BE::Shdr *, StringRef);
+
+template EhInputSection::EhInputSection(elf::ObjectFile<ELF32LE> *,
+                                        const ELF32LE::Shdr *, StringRef);
+template EhInputSection::EhInputSection(elf::ObjectFile<ELF32BE> *,
+                                        const ELF32BE::Shdr *, StringRef);
+template EhInputSection::EhInputSection(elf::ObjectFile<ELF64LE> *,
+                                        const ELF64LE::Shdr *, StringRef);
+template EhInputSection::EhInputSection(elf::ObjectFile<ELF64BE> *,
+                                        const ELF64BE::Shdr *, StringRef);
 
 template void EhInputSection::split<ELF32LE>();
 template void EhInputSection::split<ELF32BE>();




More information about the llvm-commits mailing list