diff options
author | Felipe de Azevedo Piovezan <fpiovezan@apple.com> | 2023-12-06 10:42:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-06 10:42:42 -0800 |
commit | 9982f8ee02be7aa82b88001e509a1b41d57eb1dc (patch) | |
tree | be570da73fd0f9e390ecb96ffc7f412ce1788c1b /clang/unittests/Basic/FileManagerTest.cpp | |
parent | 45e7b410c0a19fd36c2264cdc3a1b4f2ab966790 (diff) | |
download | llvm-9982f8ee02be7aa82b88001e509a1b41d57eb1dc.zip llvm-9982f8ee02be7aa82b88001e509a1b41d57eb1dc.tar.gz llvm-9982f8ee02be7aa82b88001e509a1b41d57eb1dc.tar.bz2 |
[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).
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions