aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/FileManagerTest.cpp
diff options
context:
space:
mode:
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>2023-12-06 10:42:42 -0800
committerGitHub <noreply@github.com>2023-12-06 10:42:42 -0800
commit9982f8ee02be7aa82b88001e509a1b41d57eb1dc (patch)
treebe570da73fd0f9e390ecb96ffc7f412ce1788c1b /clang/unittests/Basic/FileManagerTest.cpp
parent45e7b410c0a19fd36c2264cdc3a1b4f2ab966790 (diff)
downloadllvm-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