mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Remove getSymbolValue.
All existing users explicitly ask for an address or a file offset. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -68,7 +68,6 @@ protected:
|
||||
SymbolRef::Type &Res) const override;
|
||||
error_code getSymbolSection(DataRefImpl Symb,
|
||||
section_iterator &Res) const override;
|
||||
error_code getSymbolValue(DataRefImpl Symb, uint64_t &Val) const override;
|
||||
|
||||
error_code getLibraryNext(DataRefImpl Data,
|
||||
LibraryRef &Result) const override;
|
||||
@ -395,14 +394,6 @@ error_code ELFObjectFile<ELFT>::getSymbolSection(DataRefImpl Symb,
|
||||
return object_error::success;
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
error_code ELFObjectFile<ELFT>::getSymbolValue(DataRefImpl Symb,
|
||||
uint64_t &Val) const {
|
||||
const Elf_Sym *ESym = getSymbol(Symb);
|
||||
Val = ESym->st_value;
|
||||
return object_error::success;
|
||||
}
|
||||
|
||||
template <class ELFT>
|
||||
void ELFObjectFile<ELFT>::moveSectionNext(DataRefImpl &Sec) const {
|
||||
Sec = toDRI(++toELFShdrIter(Sec));
|
||||
|
Reference in New Issue
Block a user