From 385303b358fc0c1c7d19501e63888fb9d321a2da Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 14 Mar 2014 14:52:03 +0000 Subject: [PATCH] Delete unused ObjectFile::{begin,end}_symbols() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203928 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ObjectFile.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index b01eb000238..089f624d3db 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -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(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(Ref); - return symbol_iterator(Cast); -} - inline error_code SymbolRef::getName(StringRef &Result) const { return getObject()->getSymbolName(getRawDataRefImpl(), Result); }