diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-02 10:31:21 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-05-02 10:36:11 -0700 |
commit | 611bd6c6aeb9a9d194aa128e2d20b4b6bbb1fc84 (patch) | |
tree | 218426d304413434545c65deabd863b04bb2dbce /lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | |
parent | 7f8dee5c540465b4eb487a3e555c89227ec33d76 (diff) | |
download | llvm-611bd6c6aeb9a9d194aa128e2d20b4b6bbb1fc84.zip llvm-611bd6c6aeb9a9d194aa128e2d20b4b6bbb1fc84.tar.gz llvm-611bd6c6aeb9a9d194aa128e2d20b4b6bbb1fc84.tar.bz2 |
[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.
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp')
-rw-r--r-- | lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp index 8ae1186..4f1ce5c 100644 --- a/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp +++ b/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp @@ -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); } }; |