OSDN Git Service

dwarfdump: Delay parsing abbreviations until they're needed
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 19 Sep 2017 15:13:55 +0000 (15:13 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 19 Sep 2017 15:13:55 +0000 (15:13 +0000)
commit7414b5dffddbde8a039bad1a5ff23ad3c3c3a896
treeb13827390d72d30c64b10ca824bd9ccb524b42f3
parent68b21d6108df63d65d6735e9686d53cca844e37a
dwarfdump: Delay parsing abbreviations until they're needed

This speeds up dumping specific DIEs by not parsing abbreviations for
units that are not used.

(this is also handy to have in eventually to speed up llvm-symbolizer
for .dwp files, where parsing most of the DWP file can be avoided by
using the index)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313635 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
include/llvm/DebugInfo/DWARF/DWARFUnit.h
lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
lib/DebugInfo/DWARF/DWARFUnit.cpp