[Lldb-commits] [lldb] [lldb][DWARF64] Enable support for DWARF64 format handling (PR #145645)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Mon Jun 30 05:23:21 PDT 2025
================
@@ -119,10 +121,7 @@ bool DWARFFormValue::ExtractValue(const DWARFDataExtractor &data,
break;
case DW_FORM_ref_addr:
assert(m_unit);
- if (m_unit->GetVersion() <= 2)
- ref_addr_size = m_unit->GetAddressByteSize();
- else
- ref_addr_size = 4;
+ ref_addr_size = m_unit->GetFormParams().getRefAddrByteSize();
----------------
Michael137 wrote:
Outside the scope of this PR but seems like we can just make `ref_addr_size` local to the cases that need it. Don't see the point of having it outside the switch
https://github.com/llvm/llvm-project/pull/145645
More information about the lldb-commits
mailing list