mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
[ELF] - Detemplate InputSectionBase::getLinkOrderDep(). NFC.
llvm-svn: 298346
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user