[lldb] Use a struct to pass function search options to Module::FindFunction
authorJonas Devlieghere <jonas@devlieghere.com>
Thu, 5 Aug 2021 16:27:19 +0000 (09:27 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Thu, 5 Aug 2021 17:18:14 +0000 (10:18 -0700)
commitc020be17ce0a43c32554585e1075627769f364f3
tree46dd8c71d4a2823f6aee0e3f6f2816ce7097e06d
parenta756239e727842f2c274208acd8fb93fa745d04a
[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
16 files changed:
lldb/include/lldb/Core/Module.h
lldb/include/lldb/Core/ModuleList.h
lldb/source/API/SBModule.cpp
lldb/source/API/SBTarget.cpp
lldb/source/Breakpoint/BreakpointResolverName.cpp
lldb/source/Commands/CommandCompletions.cpp
lldb/source/Commands/CommandObjectDisassemble.cpp
lldb/source/Commands/CommandObjectSource.cpp
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Core/Module.cpp
lldb/source/Core/ModuleList.cpp
lldb/source/Core/SourceManager.cpp
lldb/source/Expression/IRExecutionUnit.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp