[Lldb-commits] [PATCH] D145568: [lldb] Add dummy field to RegisterInfo for register flags use later
David Spickett via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 21 02:43:47 PDT 2023
DavidSpickett added inline comments.
================
Comment at: lldb/source/Plugins/ABI/ARM/ABIMacOSX_arm.cpp:57-68
{"r1",
nullptr,
4,
0,
eEncodingUint,
eFormatHex,
{ehframe_r1, dwarf_r1, LLDB_REGNUM_GENERIC_ARG2, LLDB_INVALID_REGNUM,
----------------
JDevlieghere wrote:
> Would using a `.def` file make this easier to maintain?
Almost certainly, do you mean in general? Half of these files are using some macro to make the defs already, one could probably generalise that. You'd end up with a sort of constructor for RegisterInfo, but it's a macro. So if some file wants to diverge, it can.
Let me see what I can do about that, though I think it would be best done in a new patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145568/new/
https://reviews.llvm.org/D145568
More information about the lldb-commits
mailing list