[LLDB] Change pointer to ref in EmulateInstruction::ReadRegister methods
authorDavid Spickett <david.spickett@linaro.org>
Wed, 28 Sep 2022 12:45:18 +0000 (12:45 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 11 Oct 2022 12:31:55 +0000 (12:31 +0000)
commit2a627e2ad1d80b660fcb02dde85b346f61193ade
tree275f6b75f0d07ce3af6e0501acb5f080f0fdf8cf
parent0648e42e5281341ea3bdf075ff653a64f8356450
[LLDB] Change pointer to ref in EmulateInstruction::ReadRegister methods

ReadRegister and ReadRegisterAsUnsigned are always passed valid pointers,
so the parameter should be a ref to make the intent clear.

Reviewed By: clayborg

Differential Revision: https://reviews.llvm.org/D134962
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