[Lldb-commits] [lldb] [lldb] Add template method for getting const or mutable regs from DynamicRegisterInfo (PR #71402)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 6 09:52:57 PST 2023


================
@@ -108,10 +104,11 @@ bool ArchitectureAArch64::ReconfigureRegisterInfo(DynamicRegisterInfo &reg_info,
   if (!vg_reg_value && !svg_reg_value)
     return false;
 
+  auto regs = reg_info.registers<DynamicRegisterInfo::reg_collection_range>();
----------------
medismailben wrote:

nit: If you specify the type of `regs` (instead of using `auto`), you shouldn't have to specify the template argument, and just call `reg_info.registers()`.

https://github.com/llvm/llvm-project/pull/71402


More information about the lldb-commits mailing list