mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +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:
@ -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);
|
||||
|
Reference in New Issue
Block a user