diff options
author | Pavel Labath <pavel@labath.sk> | 2019-09-24 12:36:54 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-09-24 12:36:54 +0000 |
commit | 13a4e8f3ef24dd69e143bb3d3591dccb2c04df9d (patch) | |
tree | 2d34679b9811f3d3311e7c8d2def58a72e5e41b8 /lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py | |
parent | 182d4874fd4d3aa4399c14d497a41909e12fb5ed (diff) | |
download | bcm5719-llvm-13a4e8f3ef24dd69e143bb3d3591dccb2c04df9d.tar.gz bcm5719-llvm-13a4e8f3ef24dd69e143bb3d3591dccb2c04df9d.zip |
Enhance SymbolFileDWARF::ParseDeclsForContext performance
This implements
DWARFASTParserClang::EnsureAllDIEsInDeclContextHaveBeenParsed so as to
provide a faster way to ensure all DIEs linked to a certain declaration
context have been parsed.
Currently, we rely on SymbolFileDWARF::ParseDeclsForContext calling
DWARFASTParserClang::GetDIEForDeclContext, and only then
DWARFASTParserClang::GetDeclForUIDFromDWARF. This change shortcuts that
logic and removes redundant calls to DWARFASTParserClang::
GetClangDeclForDIE by deleting DIEs from the m_decl_ctx_to_die map once
they have been parsed.
Differential Revision: https://reviews.llvm.org/D67760
Patch by Guilherme Andrade <guiandrade@google.com>.
llvm-svn: 372744
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/target/TestTargetAPI.py')
0 files changed, 0 insertions, 0 deletions