mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-23 04:01:16 +00:00
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
This commit is contained in:
parent
907451c6d6
commit
26a99b2dc8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user