[LLDB] Pass const RegisterInfo& to RegisterValue::SetValueFromData
authorDavid Spickett <david.spickett@linaro.org>
Wed, 28 Sep 2022 14:44:17 +0000 (14:44 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 12 Oct 2022 08:19:30 +0000 (08:19 +0000)
commit6faa345da9d747c65c4d901c4ef26dfedf95da45
treefdf18419d1fb763dbce102011c9e2d6ff2c1aa9d
parent32f0bde548cface29b26ee26763881dbcfb8bb58
[LLDB] Pass const RegisterInfo& to RegisterValue::SetValueFromData

Familiar story, callers are either checking upfront that the pointer
wasn't null or not checking at all. SetValueFromData itself didn't
check either.

So make the parameter a ref and fixup the few places where a nullptr
check seems needed.

Depends on D135668

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D135670
lldb/include/lldb/Utility/RegisterValue.h
lldb/source/Core/ValueObjectRegister.cpp
lldb/source/Core/ValueObjectVariable.cpp
lldb/source/Plugins/ABI/AArch64/ABIMacOSX_arm64.cpp
lldb/source/Plugins/ABI/AArch64/ABISysV_arm64.cpp
lldb/source/Plugins/Process/Utility/RegisterContextMemory.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Utility/RegisterValue.cpp