[Lldb-commits] [lldb] Add AddressRange to SB API (PR #92014)

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Mon May 13 14:28:15 PDT 2024


================
@@ -160,6 +160,17 @@ SBAddress SBFunction::GetEndAddress() {
   return addr;
 }
 
+lldb::SBAddressRange SBFunction::GetRange() {
+  LLDB_INSTRUMENT_VA(this);
+
+  lldb::SBAddressRange range;
+  if (m_opaque_ptr) {
+    range.ref() = m_opaque_ptr->GetAddressRange();
+  }
----------------
bulbazord wrote:

Remove braces around single line blocks (per LLVM guidelines)

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


More information about the lldb-commits mailing list