[llvm] r248040 - This code never uses r_addend, so it can just use Elf_Rel.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 18 14:12:39 PDT 2015
Author: rafael
Date: Fri Sep 18 16:12:38 2015
New Revision: 248040
URL: http://llvm.org/viewvc/llvm-project?rev=248040&view=rev
Log:
This code never uses r_addend, so it can just use Elf_Rel.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=248040&r1=248039&r2=248040&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Fri Sep 18 16:12:38 2015
@@ -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>::getRelocationTypeNam
}
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)
More information about the llvm-commits
mailing list