Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lldb][SymbolFileDWARF][NFC] Remove unnecessary calls to GetDWARFDecl…
…Context (llvm#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).
- Loading branch information