[llvm/Object] Reimplment basic_symbol_iterator in TapiFile
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 12 Jun 2020 07:01:54 +0000 (00:01 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 12 Jun 2020 07:03:32 +0000 (00:03 -0700)
commit425c6f079b9c7a2b70407843e89eb67a7b32032d
tree7616cc2ef5dd1153902ec457e6cd79ba9d2b026e
parentc35ed40f4f1bd8afd709c5342b36f33c7c5b0fbd
[llvm/Object] Reimplment basic_symbol_iterator in TapiFile

Use indices into the Symbols vector instead of casting the objects in
the vector and dereferencing std::vector::end().

This change is NFC modulo the Windows failure reported by
llvm-clang-x86_64-expensive-checks-win.

Differential revision: https://reviews.llvm.org/D81717
llvm/lib/Object/TapiFile.cpp