[ELF] - Detemplate InputSectionBase::getLinkOrderDep(). NFC.

llvm-svn: 298346
This commit is contained in:
George Rimar
2017-03-21 08:29:48 +00:00
parent 35e846e14d
commit 9353e2dbfb
4 changed files with 7 additions and 14 deletions

View File

@@ -162,10 +162,9 @@ uint64_t SectionBase::getOffset(const DefinedRegular &Sym) const {
return getOffset(Sym.Value);
}
template <class ELFT>
InputSectionBase *InputSectionBase::getLinkOrderDep() const {
if ((Flags & SHF_LINK_ORDER) && Link != 0)
return getFile<ELFT>()->getSections()[Link];
return File->getSections()[Link];
return nullptr;
}
@@ -830,11 +829,6 @@ template void InputSectionBase::uncompress<ELF32BE>();
template void InputSectionBase::uncompress<ELF64LE>();
template void InputSectionBase::uncompress<ELF64BE>();
template InputSectionBase *InputSectionBase::getLinkOrderDep<ELF32LE>() const;
template InputSectionBase *InputSectionBase::getLinkOrderDep<ELF32BE>() const;
template InputSectionBase *InputSectionBase::getLinkOrderDep<ELF64LE>() const;
template InputSectionBase *InputSectionBase::getLinkOrderDep<ELF64BE>() const;
template InputSectionBase *InputSection::getRelocatedSection<ELF32LE>();
template InputSectionBase *InputSection::getRelocatedSection<ELF32BE>();
template InputSectionBase *InputSection::getRelocatedSection<ELF64LE>();