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:
Rafael Espindola
2014-04-03 02:32:47 +00:00
parent 2f913e3c6c
commit 3539519223
6 changed files with 0 additions and 29 deletions

View File

@ -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));