mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 15:14:31 +00:00
[lldb] Use a struct to pass function search options to Module::FindFunction
Rather than passing two booleans around, which is especially error prone with them being next to each other, use a struct with named fields instead. Differential revision: https://reviews.llvm.org/D107295
This commit is contained in:
1 parent
a756239e72
commit
c020be17ce
16 files changed
+148
-111
No files matched your search
@@ -397,11 +397,13 @@ lldb::SBSymbolContextList SBModule::FindFunctions(const char *name,
|
||||
lldb::SBSymbolContextList sb_sc_list;
|
||||
ModuleSP module_sp(GetSP());
|
||||
if (name && module_sp) {
|
||||
const bool symbols_ok = true;
|
||||
const bool inlines_ok = true;
|
||||
|
||||
ModuleFunctionSearchOptions function_options;
|
||||
function_options.include_symbols = true;
|
||||
function_options.include_inlines = true;
|
||||
FunctionNameType type = static_cast<FunctionNameType>(name_type_mask);
|
||||
module_sp->FindFunctions(ConstString(name), CompilerDeclContext(), type,
|
||||
symbols_ok, inlines_ok, *sb_sc_list);
|
||||
function_options, *sb_sc_list);
|
||||
}
|
||||
return LLDB_RECORD_RESULT(sb_sc_list);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user