[LLDB] Change EmulateInstriction::ReadRegister to return Optional
authorDavid Spickett <david.spickett@linaro.org>
Wed, 28 Sep 2022 15:32:33 +0000 (15:32 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 12 Oct 2022 08:37:36 +0000 (08:37 +0000)
commit0577a9f8d06b97bf8b4d9aa171096e0797e4f5d1
treeef62d4d481aa88c102d4e68e4117489a1e6ccabd
parenta17fcb223036a4cbd02a9a96cd3e94d52a3ca7c1
[LLDB] Change EmulateInstriction::ReadRegister to return Optional

Making it easier to understand and harder to misuse.
This only applies to the ReadRegister(const RegisterInfo &reg_info) variant.

Depends on D135671

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D135672
lldb/include/lldb/Core/EmulateInstruction.h
lldb/source/Core/EmulateInstruction.cpp
lldb/source/Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp
lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp