This code never uses r_addend, so it can just use Elf_Rel.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 18 Sep 2015 21:12:38 +0000 (21:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 18 Sep 2015 21:12:38 +0000 (21:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248040 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index c32a02a8437bd5827d8880acff1a50d8f8f01881..dfc06af1e08f907a440f335318b9fca580fdda57 100644 (file)
@@ -87,8 +87,7 @@ public:
                              SmallVectorImpl<char> &Result) const;
 
   /// \brief Get the symbol for a given relocation.
-  template <class RelT>
-  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<ELFT>::getRelocationTypeName(uint32_t Type,
 }
 
 template <class ELFT>
-template <class RelT>
 const typename ELFFile<ELFT>::Elf_Sym *
-ELFFile<ELFT>::getRelocationSymbol(const RelT *Rel,
+ELFFile<ELFT>::getRelocationSymbol(const Elf_Rel *Rel,
                                    const Elf_Shdr *SymTab) const {
   uint32_t Index = Rel->getSymbol(isMips64EL());
   if (Index == 0)