[all-commits] [llvm/llvm-project] 9982f8: [lldb][SymbolFileDWARF][NFC] Remove unnecessary ca...
Felipe de Azevedo Piovezan via All-commits
all-commits at lists.llvm.org
Wed Dec 6 10:42:56 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9982f8ee02be7aa82b88001e509a1b41d57eb1dc
https://github.com/llvm/llvm-project/commit/9982f8ee02be7aa82b88001e509a1b41d57eb1dc
Author: Felipe de Azevedo Piovezan <fpiovezan at apple.com>
Date: 2023-12-06 (Wed, 06 Dec 2023)
Changed paths:
M lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
Log Message:
-----------
[lldb][SymbolFileDWARF][NFC] Remove unnecessary calls to GetDWARFDeclContext (#74523)
The function FindDefinitionTypeForDWARFDeclContext loops over all DIEs
corresponding to types with a certain name and compares the context of
each found DIE with the context of a target DIE. However, the target DIE
never changes throughout this search, and yet we recompute its
DeclContext on every iteration of the search. This is wasteful because
the method is not exactly free (see
DWARFDebugInfoEntry::GetDWARFDeclContextStatic).
More information about the All-commits
mailing list