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

@ -156,9 +156,6 @@ public:
/// end_sections() if it is undefined or is an absolute symbol.
error_code getSection(section_iterator &Result) const;
/// @brief Get value of the symbol in the symbol table.
error_code getValue(uint64_t &Val) const;
const ObjectFile *getObject() const;
};
@ -238,7 +235,6 @@ protected:
SymbolRef::Type &Res) const = 0;
virtual error_code getSymbolSection(DataRefImpl Symb,
section_iterator &Res) const = 0;
virtual error_code getSymbolValue(DataRefImpl Symb, uint64_t &Val) const = 0;
// Same as above for SectionRef.
friend class SectionRef;
@ -375,10 +371,6 @@ inline error_code SymbolRef::getType(SymbolRef::Type &Result) const {
return getObject()->getSymbolType(getRawDataRefImpl(), Result);
}
inline error_code SymbolRef::getValue(uint64_t &Val) const {
return getObject()->getSymbolValue(getRawDataRefImpl(), Val);
}
inline const ObjectFile *SymbolRef::getObject() const {
const SymbolicFile *O = BasicSymbolRef::getObject();
return cast<ObjectFile>(O);