diff options
| author | Shafik Yaghmour <syaghmour@apple.com> | 2019-05-13 16:48:06 +0000 |
|---|---|---|
| committer | Shafik Yaghmour <syaghmour@apple.com> | 2019-05-13 16:48:06 +0000 |
| commit | 9acacebf83d393f7d73c1ab8f29a4137755d9782 (patch) | |
| tree | 8952a5213ab50cec767eaa72e9e28684efe76a61 | |
| parent | 0b13ca2f5efddd08e08c26bb9c3ecd9ab295c769 (diff) | |
| download | bcm5719-llvm-9acacebf83d393f7d73c1ab8f29a4137755d9782.tar.gz bcm5719-llvm-9acacebf83d393f7d73c1ab8f29a4137755d9782.zip | |
[DataFormatters] FindLibCppStdFunctionCallableInfo() currently uses FindFunctions() in order to find a lambdas operator()() but using FindSymbolsMatchingRegExAndType() is cheaper and if we also anchor the regex using ^ this adds some additional performance gains.
Differential Revision: https://reviews.llvm.org/D61759
llvm-svn: 360599
| -rw-r--r-- | lldb/source/Target/CPPLanguageRuntime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/CPPLanguageRuntime.cpp b/lldb/source/Target/CPPLanguageRuntime.cpp index 16387e80988..ef120217005 100644 --- a/lldb/source/Target/CPPLanguageRuntime.cpp +++ b/lldb/source/Target/CPPLanguageRuntime.cpp @@ -241,8 +241,8 @@ CPPLanguageRuntime::FindLibCppStdFunctionCallableInfo( SymbolContextList scl; - target.GetImages().FindFunctions(RegularExpression{func_to_match}, true, true, - true, scl); + target.GetImages().FindSymbolsMatchingRegExAndType( + RegularExpression{R"(^)" + func_to_match}, eSymbolTypeAny, scl, true); // Case 1,2 or 3 if (scl.GetSize() >= 1) { |

