Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
Show First 20 Lines • Show All 296 Lines • ▼ Show 20 Lines | while (Continue) { | ||||
case dwarf::DW_LLE_start_length: | case dwarf::DW_LLE_start_length: | ||||
E.Value0 = Data.getRelocatedAddress(C); | E.Value0 = Data.getRelocatedAddress(C); | ||||
E.Value1 = Data.getULEB128(C); | E.Value1 = Data.getULEB128(C); | ||||
break; | break; | ||||
case dwarf::DW_LLE_startx_endx: | case dwarf::DW_LLE_startx_endx: | ||||
case dwarf::DW_LLE_default_location: | case dwarf::DW_LLE_default_location: | ||||
case dwarf::DW_LLE_start_end: | case dwarf::DW_LLE_start_end: | ||||
default: | default: | ||||
cantFail(C.takeError()); | llvm_cantFail(C.takeError()); | ||||
return createStringError(errc::illegal_byte_sequence, | return createStringError(errc::illegal_byte_sequence, | ||||
"LLE of kind %x not supported", (int)E.Kind); | "LLE of kind %x not supported", (int)E.Kind); | ||||
} | } | ||||
if (E.Kind != dwarf::DW_LLE_base_address && | if (E.Kind != dwarf::DW_LLE_base_address && | ||||
E.Kind != dwarf::DW_LLE_base_addressx && | E.Kind != dwarf::DW_LLE_base_addressx && | ||||
E.Kind != dwarf::DW_LLE_end_of_list) { | E.Kind != dwarf::DW_LLE_end_of_list) { | ||||
unsigned Bytes = Version >= 5 ? Data.getULEB128(C) : Data.getU16(C); | unsigned Bytes = Version >= 5 ? Data.getULEB128(C) : Data.getU16(C); | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |