[Lldb-commits] [lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 16 02:57:23 PDT 2024


================
@@ -124,6 +124,9 @@ class ABISysV_riscv : public lldb_private::RegInfoBasedABI {
   using lldb_private::RegInfoBasedABI::RegInfoBasedABI; // Call CreateInstance
                                                         // instead.
   bool m_is_rv64; // true if target is riscv64; false if target is riscv32
+  static constexpr size_t s_regs_for_args_count =
----------------
dlav-sc wrote:

I use `s_regs_for_args_count` in 2 different `ABISysV_riscv` methods, so I've decided to place it here. Maybe I can create a static global value in `ABISysV_riscv.cpp` instead.

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


More information about the lldb-commits mailing list