[Lldb-commits] [lldb] [lldb] Add template method for getting const or mutable regs from DynamicRegisterInfo (PR #71402)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 7 00:56:41 PST 2023
================
@@ -89,12 +89,18 @@ class DynamicRegisterInfo {
GetRegisterInfo(llvm::StringRef reg_name) const;
typedef std::vector<lldb_private::RegisterInfo> reg_collection;
- llvm::iterator_range<reg_collection::const_iterator> registers() const {
- return llvm::iterator_range<reg_collection::const_iterator>(m_regs);
+
+ template <typename T> T registers();
----------------
DavidSpickett wrote:
Done.
https://github.com/llvm/llvm-project/pull/71402
More information about the lldb-commits
mailing list