From 26a99b2dc87928a36ea937191865a9ec5b0b9ca4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 18 Sep 2015 21:12:38 +0000 Subject: [PATCH] This code never uses r_addend, so it can just use Elf_Rel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248040 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) -- 2.34.1