dwarfdump: Avoid parsing units unnecessarily
authorDavid Blaikie <dblaikie@gmail.com>
Fri, 5 Oct 2018 20:55:20 +0000 (20:55 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Fri, 5 Oct 2018 20:55:20 +0000 (20:55 +0000)
commitfdada09fa4351b270df0cbfe5ef72aa2853b9f26
tree2b215514d9a9e7a423b4457b238e4bd386d73e8c
parent5931b4e5b5de31bd366cbeb773f53357a0985e68
dwarfdump: Avoid parsing units unnecessarily

NFC-ish (the parsing of the units is not a functional change - no
errors/warnings are emitted during the shallow parsing - though without
parsing them here, the "max version" would be wrong (still zero) later
on, so in those cases the units do need to be parsed)

llvm-svn: 343884
llvm/include/llvm/DebugInfo/DWARF/DWARFContext.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp