[ELF] - Move template instantiations to the end of file. NFC.

To be consistent with other code, addresses post 
commit review comments.

llvm-svn: 298102
This commit is contained in:
George Rimar 2017-03-17 16:50:07 +00:00
parent b10daaf198
commit a918957b05
1 changed files with 5 additions and 9 deletions

View File

@ -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;
@ -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>();