[lldb] [DynamicRegisterInfo] Pass name/alt_name via RegisterInfo
authorMichał Górny <mgorny@moritz.systems>
Thu, 16 Sep 2021 09:43:56 +0000 (11:43 +0200)
committerMichał Górny <mgorny@moritz.systems>
Thu, 16 Sep 2021 10:00:20 +0000 (12:00 +0200)
commit86a58f10284dea118703ecde0ef5b9a4f6e4d8be
tree3d2251898ba04d69b744ef5797a033d984e9b2ae
parent96ec9b6ff2f0bb9078306e3857f09974603ccbe4
[lldb] [DynamicRegisterInfo] Pass name/alt_name via RegisterInfo

Remove the name and alt_name parameters from AddRegister() and instead
pass them via RegisterInfo.name and .alt_name fields.  This makes
the API simpler and removes some duplication.

Differential Revision: https://reviews.llvm.org/D109872
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp