[llvm] r203928 - Delete unused ObjectFile::{begin,end}_symbols()

Alexey Samsonov samsonov at google.com
Fri Mar 14 07:52:03 PDT 2014


Author: samsonov
Date: Fri Mar 14 09:52:03 2014
New Revision: 203928

URL: http://llvm.org/viewvc/llvm-project?rev=203928&view=rev
Log:
Delete unused ObjectFile::{begin,end}_symbols()

Modified:
    llvm/trunk/include/llvm/Object/ObjectFile.h

Modified: llvm/trunk/include/llvm/Object/ObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ObjectFile.h?rev=203928&r1=203927&r2=203928&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ObjectFile.h (original)
+++ llvm/trunk/include/llvm/Object/ObjectFile.h Fri Mar 14 09:52:03 2014
@@ -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);
 }





More information about the llvm-commits mailing list