Skip to content

Commit 742256d

Browse files
committed
simplify
1 parent 3d19a8f commit 742256d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lldb/source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,8 @@ void DWARFFormValue::Dump(Stream &s) const {
416416
case DW_FORM_ref_addr: {
417417
assert(m_unit); // Unit must be valid for DW_FORM_ref_addr objects or we
418418
// will get this wrong
419-
if (m_unit->GetVersion() <= 2)
420-
DumpAddress(s.AsRawOstream(), uvalue, sizeof(uint64_t) * 2);
421-
else
422-
DumpAddress(s.AsRawOstream(), uvalue,
423-
m_unit->GetFormParams().getRefAddrByteSize());
419+
DumpAddress(s.AsRawOstream(), uvalue,
420+
m_unit->GetFormParams().getRefAddrByteSize());
424421
break;
425422
}
426423
case DW_FORM_ref1:

0 commit comments

Comments
 (0)