Skip to content

Commit

Permalink
[ELF] - Move template instantiations to the end of file. NFC.
Browse files Browse the repository at this point in the history
To be consistent with other code, addresses post 
commit review comments.

llvm-svn: 298102
  • Loading branch information
George Rimar committed Mar 17, 2017
1 parent b10daaf commit a918957
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions lld/ELF/SyntheticSections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2249,15 +2249,6 @@ InputSection *ThunkSection::getTargetInputSection() const {
return T->getTargetInputSection();
}

namespace lld {
namespace elf {
template void PltSection::addEntry<ELF32LE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF32BE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF64LE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF64BE>(SymbolBody &Sym);
}
}

InputSection *InX::ARMAttributes;
BssSection *InX::Bss;
BssSection *InX::BssRelRo;
Expand All @@ -2272,6 +2263,11 @@ PltSection *InX::Iplt;
StringTableSection *InX::ShStrTab;
StringTableSection *InX::StrTab;

template void PltSection::addEntry<ELF32LE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF32BE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF64LE>(SymbolBody &Sym);
template void PltSection::addEntry<ELF64BE>(SymbolBody &Sym);

template InputSection *elf::createCommonSection<ELF32LE>();
template InputSection *elf::createCommonSection<ELF32BE>();
template InputSection *elf::createCommonSection<ELF64LE>();
Expand Down

0 comments on commit a918957

Please sign in to comment.