[DataFormatters] FindLibCppStdFunctionCallableInfo() currently uses FindFunctions...
authorShafik Yaghmour <syaghmour@apple.com>
Mon, 13 May 2019 16:48:06 +0000 (16:48 +0000)
committerShafik Yaghmour <syaghmour@apple.com>
Mon, 13 May 2019 16:48:06 +0000 (16:48 +0000)
Differential Revision: https://reviews.llvm.org/D61759

llvm-svn: 360599

lldb/source/Target/CPPLanguageRuntime.cpp

index 16387e8..ef12021 100644 (file)
@@ -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) {