This revision was automatically updated to reflect the committed changes.
Closed by commit rG36195d7d80e3: [lldb] [DynamicRegisterInfo] Remove non-const
GetRegisterInfoAtIndex() (authored by mgorny).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111408/new/
https://reviews.llvm.org/D111408
Files:
lldb/include/lldb/Target/DynamicRegisterInfo.h
lldb/source/Target/DynamicRegisterInfo.cpp
Index: lldb/source/Target/DynamicRegisterInfo.cpp
===================================================================
--- lldb/source/Target/DynamicRegisterInfo.cpp
+++ lldb/source/Target/DynamicRegisterInfo.cpp
@@ -691,12 +691,6 @@
return nullptr;
}
-RegisterInfo *DynamicRegisterInfo::GetRegisterInfoAtIndex(uint32_t i) {
- if (i < m_regs.size())
- return &m_regs[i];
- return nullptr;
-}
-
const RegisterInfo *DynamicRegisterInfo::GetRegisterInfo(uint32_t kind,
uint32_t num) const {
uint32_t reg_index = ConvertRegisterKindToRegisterNumber(kind, num);
Index: lldb/include/lldb/Target/DynamicRegisterInfo.h
===================================================================
--- lldb/include/lldb/Target/DynamicRegisterInfo.h
+++ lldb/include/lldb/Target/DynamicRegisterInfo.h
@@ -55,8 +55,6 @@
const lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i) const;
- lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i);
-
const lldb_private::RegisterSet *GetRegisterSet(uint32_t i) const;
uint32_t GetRegisterSetIndexByName(lldb_private::ConstString &set_name,
Index: lldb/source/Target/DynamicRegisterInfo.cpp
===================================================================
--- lldb/source/Target/DynamicRegisterInfo.cpp
+++ lldb/source/Target/DynamicRegisterInfo.cpp
@@ -691,12 +691,6 @@
return nullptr;
}
-RegisterInfo *DynamicRegisterInfo::GetRegisterInfoAtIndex(uint32_t i) {
- if (i < m_regs.size())
- return &m_regs[i];
- return nullptr;
-}
-
const RegisterInfo *DynamicRegisterInfo::GetRegisterInfo(uint32_t kind,
uint32_t num) const {
uint32_t reg_index = ConvertRegisterKindToRegisterNumber(kind, num);
Index: lldb/include/lldb/Target/DynamicRegisterInfo.h
===================================================================
--- lldb/include/lldb/Target/DynamicRegisterInfo.h
+++ lldb/include/lldb/Target/DynamicRegisterInfo.h
@@ -55,8 +55,6 @@
const lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i) const;
- lldb_private::RegisterInfo *GetRegisterInfoAtIndex(uint32_t i);
-
const lldb_private::RegisterSet *GetRegisterSet(uint32_t i) const;
uint32_t GetRegisterSetIndexByName(lldb_private::ConstString &set_name,
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits