@@ -175,7 +175,7 @@ struct Registers_REGDISPLAY : REGDISPLAY
175
175
inline bool validFloatRegister (int ) { return false ; }
176
176
inline bool validVectorRegister (int ) { return false ; }
177
177
178
- inline static int lastDwarfRegNum () { return 16 ; }
178
+ static constexpr int lastDwarfRegNum () { return 16 ; }
179
179
180
180
inline bool validRegister (int regNum) const
181
181
{
@@ -297,7 +297,7 @@ struct Registers_REGDISPLAY : REGDISPLAY
297
297
inline bool validFloatRegister (int ) { return false ; }
298
298
inline bool validVectorRegister (int ) { return false ; }
299
299
300
- inline static int lastDwarfRegNum () { return 16 ; }
300
+ static constexpr int lastDwarfRegNum () { return 16 ; }
301
301
302
302
inline bool validRegister (int regNum) const
303
303
{
@@ -336,7 +336,7 @@ struct Registers_REGDISPLAY : REGDISPLAY
336
336
struct Registers_REGDISPLAY : REGDISPLAY
337
337
{
338
338
inline static int getArch () { return libunwind::REGISTERS_ARM; }
339
- inline static int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM; }
339
+ static constexpr int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM; }
340
340
341
341
bool validRegister (int num) const ;
342
342
bool validFloatRegister (int num) const ;
@@ -533,7 +533,7 @@ void Registers_REGDISPLAY::setFloatRegister(int num, double value)
533
533
struct Registers_REGDISPLAY : REGDISPLAY
534
534
{
535
535
inline static int getArch () { return libunwind::REGISTERS_ARM64; }
536
- inline static int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64; }
536
+ static constexpr int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64; }
537
537
538
538
bool validRegister (int num) const ;
539
539
bool validFloatRegister (int num) { return false ; };
@@ -816,7 +816,7 @@ void Registers_REGDISPLAY::setVectorRegister(int num, libunwind::v128 value)
816
816
struct Registers_REGDISPLAY : REGDISPLAY
817
817
{
818
818
inline static int getArch () { return libunwind::REGISTERS_LOONGARCH; }
819
- inline static int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_LOONGARCH; }
819
+ static constexpr int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_LOONGARCH; }
820
820
821
821
bool validRegister (int num) const ;
822
822
bool validFloatRegister (int num) { return false ; };
@@ -1096,7 +1096,7 @@ void Registers_REGDISPLAY::setVectorRegister(int num, libunwind::v128 value)
1096
1096
struct Registers_REGDISPLAY : REGDISPLAY
1097
1097
{
1098
1098
inline static int getArch () { return libunwind::REGISTERS_RISCV; }
1099
- inline static int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_RISCV; }
1099
+ static constexpr int lastDwarfRegNum () { return _LIBUNWIND_HIGHEST_DWARF_REGISTER_RISCV; }
1100
1100
1101
1101
bool validRegister (int num) const ;
1102
1102
bool validFloatRegister (int num) { return false ; };
0 commit comments