[lldb] Make exe_ctx an optional argument in OptionValueProperties (NFC)

The majority of call sites are nullptr as the execution context.
Refactor OptionValueProperties to make the argument optional and
simplify all the callers.
This commit is contained in:
Jonas Devlieghere
2023-05-02 10:31:21 -07:00
parent 7f8dee5c54
commit 611bd6c6ae
20 changed files with 500 additions and 533 deletions

View File

@@ -91,13 +91,13 @@ public:
llvm::Triple::EnvironmentType ABI() const {
return (llvm::Triple::EnvironmentType)m_collection_sp
->GetPropertyAtIndexAsEnumeration(nullptr, ePropertyABI)
->GetPropertyAtIndexAsEnumeration(ePropertyABI)
.value_or(llvm::Triple::UnknownEnvironment);
}
OptionValueDictionary *ModuleABIMap() const {
return m_collection_sp->GetPropertyAtIndexAsOptionValueDictionary(
nullptr, ePropertyModuleABIMap);
ePropertyModuleABIMap);
}
};