[Lldb-commits] [lldb] Remove redundant symbol lookups in IRExecutionUnit::FindInSymbols (PR #102835)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 12 22:54:18 PDT 2024


================
@@ -351,8 +351,8 @@ CommandObjectDisassemble::GetNameRanges(CommandReturnObject &result) {
 
   // Find functions matching the given name.
   SymbolContextList sc_list;
-  GetTarget().GetImages().FindFunctions(name, eFunctionNameTypeAuto,
-                                        function_options, sc_list);
+  GetTarget().GetImages().FindFunctions(
+      name, eFunctionNameTypeAuto, function_options, SymbolContext(), sc_list);
----------------
clayborg wrote:

If we use the default parameter as suggested above, all changes in this file go away.

https://github.com/llvm/llvm-project/pull/102835


More information about the lldb-commits mailing list