From 8d753caa7893385b8abadae5f269e8a0abf04dda Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Wed, 29 Mar 2017 20:15:29 +0000 Subject: [PATCH] Remove parameter names from template instantiations to make them compact. NFC. llvm-svn: 299025 --- lld/ELF/InputSection.cpp | 82 +++++++++++++++++++++--------------------------- 1 file changed, 35 insertions(+), 47 deletions(-) diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index f3a4b88..97fca12 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -819,59 +819,47 @@ uint64_t MergeInputSection::getOffset(uint64_t Offset) const { return Piece.OutputOff + Addend; } -template InputSection::InputSection(elf::ObjectFile *F, - const ELF32LE::Shdr *Header, - StringRef Name); -template InputSection::InputSection(elf::ObjectFile *F, - const ELF32BE::Shdr *Header, - StringRef Name); -template InputSection::InputSection(elf::ObjectFile *F, - const ELF64LE::Shdr *Header, - StringRef Name); -template InputSection::InputSection(elf::ObjectFile *F, - const ELF64BE::Shdr *Header, - StringRef Name); - -template std::string InputSectionBase::getLocation(uint64_t Offset); -template std::string InputSectionBase::getLocation(uint64_t Offset); -template std::string InputSectionBase::getLocation(uint64_t Offset); -template std::string InputSectionBase::getLocation(uint64_t Offset); - -template void InputSection::writeTo(uint8_t *Buf); -template void InputSection::writeTo(uint8_t *Buf); -template void InputSection::writeTo(uint8_t *Buf); -template void InputSection::writeTo(uint8_t *Buf); +template InputSection::InputSection(elf::ObjectFile *, + const ELF32LE::Shdr *, StringRef); +template InputSection::InputSection(elf::ObjectFile *, + const ELF32BE::Shdr *, StringRef); +template InputSection::InputSection(elf::ObjectFile *, + const ELF64LE::Shdr *, StringRef); +template InputSection::InputSection(elf::ObjectFile *, + const ELF64BE::Shdr *, StringRef); + +template std::string InputSectionBase::getLocation(uint64_t); +template std::string InputSectionBase::getLocation(uint64_t); +template std::string InputSectionBase::getLocation(uint64_t); +template std::string InputSectionBase::getLocation(uint64_t); + +template void InputSection::writeTo(uint8_t *); +template void InputSection::writeTo(uint8_t *); +template void InputSection::writeTo(uint8_t *); +template void InputSection::writeTo(uint8_t *); template elf::ObjectFile *InputSectionBase::getFile() const; template elf::ObjectFile *InputSectionBase::getFile() const; template elf::ObjectFile *InputSectionBase::getFile() const; template elf::ObjectFile *InputSectionBase::getFile() const; -template MergeInputSection::MergeInputSection(elf::ObjectFile *F, - const ELF32LE::Shdr *Header, - StringRef Name); -template MergeInputSection::MergeInputSection(elf::ObjectFile *F, - const ELF32BE::Shdr *Header, - StringRef Name); -template MergeInputSection::MergeInputSection(elf::ObjectFile *F, - const ELF64LE::Shdr *Header, - StringRef Name); -template MergeInputSection::MergeInputSection(elf::ObjectFile *F, - const ELF64BE::Shdr *Header, - StringRef Name); - -template EhInputSection::EhInputSection(elf::ObjectFile *F, - const ELF32LE::Shdr *Header, - StringRef Name); -template EhInputSection::EhInputSection(elf::ObjectFile *F, - const ELF32BE::Shdr *Header, - StringRef Name); -template EhInputSection::EhInputSection(elf::ObjectFile *F, - const ELF64LE::Shdr *Header, - StringRef Name); -template EhInputSection::EhInputSection(elf::ObjectFile *F, - const ELF64BE::Shdr *Header, - StringRef Name); +template MergeInputSection::MergeInputSection(elf::ObjectFile *, + const ELF32LE::Shdr *, StringRef); +template MergeInputSection::MergeInputSection(elf::ObjectFile *, + const ELF32BE::Shdr *, StringRef); +template MergeInputSection::MergeInputSection(elf::ObjectFile *, + const ELF64LE::Shdr *, StringRef); +template MergeInputSection::MergeInputSection(elf::ObjectFile *, + const ELF64BE::Shdr *, StringRef); + +template EhInputSection::EhInputSection(elf::ObjectFile *, + const ELF32LE::Shdr *, StringRef); +template EhInputSection::EhInputSection(elf::ObjectFile *, + const ELF32BE::Shdr *, StringRef); +template EhInputSection::EhInputSection(elf::ObjectFile *, + const ELF64LE::Shdr *, StringRef); +template EhInputSection::EhInputSection(elf::ObjectFile *, + const ELF64BE::Shdr *, StringRef); template void EhInputSection::split(); template void EhInputSection::split(); -- 2.7.4