Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/unittests/DebugInfo/DWARF/DWARFDieTest.cpp
Show All 15 Lines | |||||
using namespace llvm::dwarf; | using namespace llvm::dwarf; | ||||
using object::SectionedAddress; | using object::SectionedAddress; | ||||
namespace { | namespace { | ||||
TEST(DWARFDie, getLocations) { | TEST(DWARFDie, getLocations) { | ||||
const char *yamldata = R"( | const char *yamldata = R"( | ||||
debug_abbrev: | debug_abbrev: | ||||
- Table: | |||||
- Code: 0x00000001 | - Code: 0x00000001 | ||||
Tag: DW_TAG_compile_unit | Tag: DW_TAG_compile_unit | ||||
Children: DW_CHILDREN_no | Children: DW_CHILDREN_no | ||||
Attributes: | Attributes: | ||||
- Attribute: DW_AT_location | - Attribute: DW_AT_location | ||||
Form: DW_FORM_sec_offset | Form: DW_FORM_sec_offset | ||||
- Attribute: DW_AT_data_member_location | - Attribute: DW_AT_data_member_location | ||||
Form: DW_FORM_exprloc | Form: DW_FORM_exprloc | ||||
- Attribute: DW_AT_vtable_elem_location | - Attribute: DW_AT_vtable_elem_location | ||||
Form: DW_FORM_sec_offset | Form: DW_FORM_sec_offset | ||||
- Attribute: DW_AT_call_data_location | - Attribute: DW_AT_call_data_location | ||||
Form: DW_FORM_sec_offset | Form: DW_FORM_sec_offset | ||||
debug_info: | debug_info: | ||||
- Version: 5 | - Version: 5 | ||||
UnitType: DW_UT_compile | UnitType: DW_UT_compile | ||||
AbbrOffset: 0 | AbbrOffset: 0 | ||||
AddrSize: 4 | AddrSize: 4 | ||||
Entries: | Entries: | ||||
- AbbrCode: 0x00000001 | - AbbrCode: 0x00000001 | ||||
Values: | Values: | ||||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |