DWP parsing: Use the index by hash when available
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 27 Apr 2022 21:45:05 +0000 (21:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 27 Apr 2022 21:46:27 +0000 (21:46 +0000)
commit0da640cb87ae1c878dfbb9d30d7bd18ae7b244e1
tree8532a67c9cabcad85a5ab2e48b1c6405e659eab5
parenta3b7cb015fd5fd2aa98afda8ae22759576ce2888
DWP parsing: Use the index by hash when available

Rather than looking up by offset - actually use the hash table to
perform faster lookup where possible. (for DWARFv4 DWP compilation units
the hash isn't in the header - it's in the root DIE, but to parse the
DIE you need the abbrev section and to get the abbrev section you need
the index - so in that case lookup by offset is required)
lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp