1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

Delete unused ObjectFile::{begin,end}_symbols()

llvm-svn: 203928
This commit is contained in:
Alexey Samsonov 2014-03-14 14:52:03 +00:00
parent c7665b69a6
commit 74b6db47a0

View File

@ -287,9 +287,6 @@ protected:
public:
symbol_iterator begin_symbols() const;
symbol_iterator end_symbols() const;
virtual section_iterator section_begin() const = 0;
virtual section_iterator section_end() const = 0;
@ -343,20 +340,6 @@ public:
inline SymbolRef::SymbolRef(DataRefImpl SymbolP, const ObjectFile *Owner)
: BasicSymbolRef(SymbolP, Owner) {}
inline symbol_iterator ObjectFile::begin_symbols() const {
basic_symbol_iterator I = symbol_begin_impl();
const BasicSymbolRef &Ref = *I;
const SymbolRef &Cast = static_cast<const SymbolRef&>(Ref);
return symbol_iterator(Cast);
}
inline symbol_iterator ObjectFile::end_symbols() const {
basic_symbol_iterator I = symbol_end_impl();
const BasicSymbolRef &Ref = *I;
const SymbolRef &Cast = static_cast<const SymbolRef&>(Ref);
return symbol_iterator(Cast);
}
inline error_code SymbolRef::getName(StringRef &Result) const {
return getObject()->getSymbolName(getRawDataRefImpl(), Result);
}