[LLDB] Switch to RegisterInfo& for EmulateInstruction::WriteRegister
authorDavid Spickett <david.spickett@linaro.org>
Wed, 28 Sep 2022 13:15:44 +0000 (13:15 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 11 Oct 2022 13:24:55 +0000 (13:24 +0000)
commit81832afc04e130a386a89f57d3f4f2d7f19006f7
tree2a8383c1dcb0e0dd7607eb930a85a235e5d4d91a
parenta2122a09cf66c29f82f911e35770786db09565a3
[LLDB] Switch to RegisterInfo& for EmulateInstruction::WriteRegister

WriteRegister and WriteRegisterUnsigned were never pased nullptr,
and only one of them appeared to handle it. Switch to ref to make
the intent clear.

Depends on D134962

Reviewed By: clayborg

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