diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-09-18 21:12:38 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-09-18 21:12:38 +0000 |
commit | 34b9ef680fe352d621170309bb96eda8829c755d (patch) | |
tree | 0da7ad1d8ef2ffc9c242c8b4cbbbd852a5cf3a26 | |
parent | 895d96a9198bf16775be87e5568062c4eda9b7bb (diff) | |
download | bcm5719-llvm-34b9ef680fe352d621170309bb96eda8829c755d.tar.gz bcm5719-llvm-34b9ef680fe352d621170309bb96eda8829c755d.zip |
This code never uses r_addend, so it can just use Elf_Rel.
llvm-svn: 248040
-rw-r--r-- | llvm/include/llvm/Object/ELF.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h index c32a02a8437..dfc06af1e08 100644 --- a/llvm/include/llvm/Object/ELF.h +++ b/llvm/include/llvm/Object/ELF.h @@ -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) |