mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Expose getRel and getRela to reduce code duplication.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -247,9 +247,6 @@ protected:
|
||||
return *Sec;
|
||||
}
|
||||
|
||||
const Elf_Rel *getRel(DataRefImpl Rel) const;
|
||||
const Elf_Rela *getRela(DataRefImpl Rela) const;
|
||||
|
||||
const Elf_Sym *toELFSymIter(DataRefImpl Sym) const {
|
||||
return reinterpret_cast<const Elf_Sym *>(Sym.p & ~uintptr_t(1));
|
||||
}
|
||||
@ -304,6 +301,9 @@ protected:
|
||||
public:
|
||||
ELFObjectFile(MemoryBufferRef Object, std::error_code &EC);
|
||||
|
||||
const Elf_Rel *getRel(DataRefImpl Rel) const;
|
||||
const Elf_Rela *getRela(DataRefImpl Rela) const;
|
||||
|
||||
const Elf_Sym *getSymbol(DataRefImpl Symb) const;
|
||||
|
||||
basic_symbol_iterator symbol_begin_impl() const override;
|
||||
|
Reference in New Issue
Block a user