llvm-symbolizer: Avoid calling getFromOffset when the index entry is already available
Especially for symbolizer it can be efficient to have to search through
the entire index when it isn't needed - llvm-symbolizer looks up only a
few CUs & already has an index available in getUnitForEntry, once it's
passed down to DWARFUnitHeader::extract then there's no need for it to
call getFromOffset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347134 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed