[lldb/DWARF] Only match mangled name in full-name function lookup (with accelerators)
authorJaroslav Sevcik <jarin@google.com>
Tue, 28 Jan 2020 10:37:44 +0000 (11:37 +0100)
committerPavel Labath <pavel@labath.sk>
Tue, 28 Jan 2020 11:16:02 +0000 (12:16 +0100)
commit1b12766883006b8aa9d1ff744e57317647aa052a
treeeac5f2488024db4ea9986596a3bd05e6a6c49a2f
parentfba7574cb9416db270efc6621190b3d587124454
[lldb/DWARF] Only match mangled name in full-name function lookup (with accelerators)

Summary:
In the spirit of https://reviews.llvm.org/D70846, we only return functions with matching mangled name from Apple/DebugNamesDWARFIndex::GetFunction if eFunctionNameTypeFull is requested.

This speeds up lookup in the presence of large amount of class methods of the same name (a typical examples would be constructors of templates with many instantiations or overloaded operators).

Reviewers: labath

Reviewed By: labath

Subscribers: aprantl, arphaman, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D73191
lldb/source/Plugins/SymbolFile/DWARF/DWARFIndex.cpp
lldb/test/Shell/SymbolFile/DWARF/find-basic-function.cpp