summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/WindowsMachineFlag.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-06-12 11:29:50 +0000
committerPavel Labath <pavel@labath.sk>2019-06-12 11:29:50 +0000
commitca9c3de17e58bc8dbfe344f2a50f26824bca98d3 (patch)
treed263a2b61c67d2de31d00b06a26a62ef2c488ea0 /llvm/lib/Object/WindowsMachineFlag.cpp
parent7a15e99f3a9d91ab066cae32b6d82bd946e47809 (diff)
downloadbcm5719-llvm-ca9c3de17e58bc8dbfe344f2a50f26824bca98d3.tar.gz
bcm5719-llvm-ca9c3de17e58bc8dbfe344f2a50f26824bca98d3.zip
DWARF: Share line tables of type units
Summary: This patch creates a cache of file lists in line tables referenced by type units. This cache is used to avoid parsing a line table twice (since a file list will generally be shared by many type units). It also sets things up in a way that parsing of DW_AT_decl_file attributes will keep working even when we stop creating lldb compile units for dwarf type units, but it stops short of actually doing that. This means that the request for files now go directly to SymbolFileDWARF instead of being routed there indirectly via the lldb_private::CompileUnit class. As a result of this, a number of occurences of SymbolContext variables in DWARFASTParserClang have become unused, so I remove them. This patch reduces the number of times a file list is being parsed, but the situation is still suboptimal, as the parsed list is being copied multiple times. This will be fixed when we stop creating CompileUnits for DWARF type units. Reviewers: clayborg, aprantl, JDevlieghere Subscribers: jdoerfert, lldb-commits Differential Revision: https://reviews.llvm.org/D62894 llvm-svn: 363143
Diffstat (limited to 'llvm/lib/Object/WindowsMachineFlag.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud