Remove unnecessary template. NFC.

llvm-svn: 297287
This commit is contained in:
Rafael Espindola
2017-03-08 15:44:30 +00:00
parent c86b2cddc8
commit 76b6bd355d
9 changed files with 15 additions and 23 deletions

View File

@@ -86,7 +86,7 @@ InputSectionBase::InputSectionBase(elf::ObjectFile<ELFT> *File,
SectionKind) {
}
template <class ELFT> size_t InputSectionBase::getSize() const {
size_t InputSectionBase::getSize() const {
if (auto *S = dyn_cast<SyntheticSection>(this))
return S->getSize();
@@ -108,7 +108,7 @@ uint64_t InputSectionBase::getOffset(uint64_t Offset) const {
// For synthetic sections we treat offset -1 as the end of the section.
// The same approach is used for synthetic symbols (DefinedSynthetic).
return cast<InputSection>(this)->OutSecOff +
(Offset == uint64_t(-1) ? getSize<ELFT>() : Offset);
(Offset == uint64_t(-1) ? getSize() : Offset);
case EHFrame:
// The file crtbeginT.o has relocations pointing to the start of an empty
// .eh_frame that is known to be the first in the link. It does that to
@@ -836,11 +836,6 @@ template uint64_t InputSectionBase::getOffset<ELF32BE>(uint64_t Offset) const;
template uint64_t InputSectionBase::getOffset<ELF64LE>(uint64_t Offset) const;
template uint64_t InputSectionBase::getOffset<ELF64BE>(uint64_t Offset) const;
template size_t InputSectionBase::getSize<ELF32LE>() const;
template size_t InputSectionBase::getSize<ELF32BE>() const;
template size_t InputSectionBase::getSize<ELF64LE>() const;
template size_t InputSectionBase::getSize<ELF64BE>() const;
template elf::ObjectFile<ELF32LE> *InputSectionBase::getFile<ELF32LE>() const;
template elf::ObjectFile<ELF32BE> *InputSectionBase::getFile<ELF32BE>() const;
template elf::ObjectFile<ELF64LE> *InputSectionBase::getFile<ELF64LE>() const;