[Object] Return a symbol_iterator, rather than a basic_symbol_iterator, from
authorLang Hames <lhames@gmail.com>
Mon, 14 Jan 2019 22:05:12 +0000 (22:05 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 14 Jan 2019 22:05:12 +0000 (22:05 +0000)
commit46f0a97e2c30f4d457eb9b456ee6e1cd864369d8
treea5bd1acd830bfaa22120830af65a46a2d7a3d971
parent2a47e03ee4779b2b2c640c6ae3c0c91fef8c9fe6
[Object] Return a symbol_iterator, rather than a basic_symbol_iterator, from
MachOObjectFile::getSymbolByIndex.

ObjectFile derivatives should prefer symbol_iterator/SymbolRef over
basic_symbol_iterator/BasicSymbolRef where possible, as the former
retain their link to the ObjectFile (rather than a SymbolicFile) and provide
more functionality.

No test for this: Existing code is working, and we don't have (m)any libObject
unit tests. I'll think about how we can test more systematically going forward.

llvm-svn: 351128
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp