diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index c32a02a8437..dfc06af1e08 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -87,8 +87,7 @@ public: SmallVectorImpl &Result) const; /// \brief Get the symbol for a given relocation. - template - const Elf_Sym *getRelocationSymbol(const RelT *Rel, + const Elf_Sym *getRelocationSymbol(const Elf_Rel *Rel, const Elf_Shdr *SymTab) const; ELFFile(StringRef Object, std::error_code &EC); @@ -289,9 +288,8 @@ void ELFFile::getRelocationTypeName(uint32_t Type, } template -template const typename ELFFile::Elf_Sym * -ELFFile::getRelocationSymbol(const RelT *Rel, +ELFFile::getRelocationSymbol(const Elf_Rel *Rel, const Elf_Shdr *SymTab) const { uint32_t Index = Rel->getSymbol(isMips64EL()); if (Index == 0)