From 2fe8327406050d2585d2ced910a678e28caefcf5 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 7 Jan 2023 14:18:35 -0800 Subject: [lldb] Use std::optional instead of llvm::Optional (NFC) This patch replaces (llvm::|)Optional< with std::optional<. I'll post a separate patch to clean up the "using" declarations, #include "llvm/ADT/Optional.h", etc. This is part of an effort to migrate from llvm::Optional to std::optional: https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716 --- .../ScriptInterpreter/Python/ScriptedThreadPythonInterface.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h') diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h index 3b7fec6..eac4941 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedThreadPythonInterface.h @@ -30,11 +30,11 @@ public: lldb::tid_t GetThreadID() override; - llvm::Optional GetName() override; + std::optional GetName() override; lldb::StateType GetState() override; - llvm::Optional GetQueue() override; + std::optional GetQueue() override; StructuredData::DictionarySP GetStopReason() override; @@ -42,7 +42,7 @@ public: StructuredData::DictionarySP GetRegisterInfo() override; - llvm::Optional GetRegisterContext() override; + std::optional GetRegisterContext() override; StructuredData::ArraySP GetExtendedInfo() override; }; -- cgit v1.1