summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile
diff options
context:
space:
mode:
authorLevon Ter-Grigoryan <patriosthegreat@protonmail.ch>2020-01-14 14:33:43 +0100
committerPavel Labath <pavel@labath.sk>2020-01-14 14:59:56 +0100
commita705cf1acbe94498f7fcca4e89be6d4820271227 (patch)
tree03ae4c768dbec25047a93ef5cee613c7bf8a2f81 /lldb/source/Plugins/SymbolFile
parent77cc690bae310f4cba0a34f2da8a37a7c9a10a82 (diff)
downloadbcm5719-llvm-a705cf1acbe94498f7fcca4e89be6d4820271227.tar.gz
bcm5719-llvm-a705cf1acbe94498f7fcca4e89be6d4820271227.zip
Expression eval lookup speedup by not returning methods in ManualDWARFIndex::GetFunctions
Summary: This change is connected with https://reviews.llvm.org/D69843 In large codebases, we sometimes see Module::FindFunctions (when called from ClangExpressionDeclMap::FindExternalVisibleDecls) returning huge amounts of functions. In current fix I trying to return only function_fullnames from ManualDWARFIndex::GetFunctions when eFunctionNameTypeFull is passed as argument. Reviewers: labath, jarin, aprantl Reviewed By: labath Subscribers: shafik, clayborg, teemperor, arphaman, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D70846
Diffstat (limited to 'lldb/source/Plugins/SymbolFile')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
index aff8b5d8c15..1e5927bd14f 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp
@@ -401,8 +401,6 @@ void ManualDWARFIndex::GetFunctions(ConstString name, SymbolFileDWARF &dwarf,
if (name_type_mask & eFunctionNameTypeFull) {
DIEArray offsets;
- m_set.function_basenames.Find(name, offsets);
- m_set.function_methods.Find(name, offsets);
m_set.function_fullnames.Find(name, offsets);
for (const DIERef &die_ref: offsets) {
DWARFDIE die = dwarf.GetDIE(die_ref);
OpenPOWER on IntegriCloud