Lines Matching refs:CUDie
79 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TestAllForms() local
82 CUDie.addStrOffsetsBaseAttribute(); in TestAllForms()
90 CUDie.addAttribute(Attr_DW_FORM_addr, DW_FORM_addr, AddrValue); in TestAllForms()
96 CUDie.addAttribute(Attr_DW_FORM_block, DW_FORM_block, BlockData, BlockSize); in TestAllForms()
99 CUDie.addAttribute(Attr_DW_FORM_block1, DW_FORM_block1, BlockData, BlockSize); in TestAllForms()
102 CUDie.addAttribute(Attr_DW_FORM_block2, DW_FORM_block2, BlockData, BlockSize); in TestAllForms()
105 CUDie.addAttribute(Attr_DW_FORM_block4, DW_FORM_block4, BlockData, BlockSize); in TestAllForms()
110 CUDie.addAttribute(Attr_DW_FORM_data16, DW_FORM_data16, Data16, 16); in TestAllForms()
116 CUDie.addAttribute(Attr_DW_FORM_data1, DW_FORM_data1, Data1); in TestAllForms()
119 CUDie.addAttribute(Attr_DW_FORM_data2, DW_FORM_data2, Data2); in TestAllForms()
122 CUDie.addAttribute(Attr_DW_FORM_data4, DW_FORM_data4, Data4); in TestAllForms()
125 CUDie.addAttribute(Attr_DW_FORM_data8, DW_FORM_data8, Data8); in TestAllForms()
131 CUDie.addAttribute(Attr_DW_FORM_string, DW_FORM_string, StringValue); in TestAllForms()
139 CUDie.addAttribute(Attr_DW_FORM_strx, DW_FORM_strx, StrxValue); in TestAllForms()
140 CUDie.addAttribute(Attr_DW_FORM_strx1, DW_FORM_strx1, Strx1Value); in TestAllForms()
141 CUDie.addAttribute(Attr_DW_FORM_strx2, DW_FORM_strx2, Strx2Value); in TestAllForms()
142 CUDie.addAttribute(Attr_DW_FORM_strx3, DW_FORM_strx3, Strx3Value); in TestAllForms()
143 CUDie.addAttribute(Attr_DW_FORM_strx4, DW_FORM_strx4, Strx4Value); in TestAllForms()
147 CUDie.addAttribute(Attr_DW_FORM_strp, DW_FORM_strp, StrpValue); in TestAllForms()
153 CUDie.addAttribute(Attr_DW_FORM_ref_addr, DW_FORM_ref_addr, RefAddr); in TestAllForms()
156 CUDie.addAttribute(Attr_DW_FORM_ref1, DW_FORM_ref1, Data1); in TestAllForms()
159 CUDie.addAttribute(Attr_DW_FORM_ref2, DW_FORM_ref2, Data2); in TestAllForms()
162 CUDie.addAttribute(Attr_DW_FORM_ref4, DW_FORM_ref4, Data4); in TestAllForms()
165 CUDie.addAttribute(Attr_DW_FORM_ref8, DW_FORM_ref8, Data8); in TestAllForms()
169 CUDie.addAttribute(Attr_DW_FORM_ref_sig8, DW_FORM_ref_sig8, Data8_2); in TestAllForms()
172 CUDie.addAttribute(Attr_DW_FORM_ref_udata, DW_FORM_ref_udata, UData[0]); in TestAllForms()
178 CUDie.addAttribute(Attr_DW_FORM_flag_true, DW_FORM_flag, true); in TestAllForms()
181 CUDie.addAttribute(Attr_DW_FORM_flag_false, DW_FORM_flag, false); in TestAllForms()
185 CUDie.addAttribute(Attr_DW_FORM_flag_present, DW_FORM_flag_present); in TestAllForms()
191 CUDie.addAttribute(Attr_DW_FORM_sdata, DW_FORM_sdata, SData); in TestAllForms()
196 CUDie.addAttribute(Attr_DW_FORM_implicit_const, DW_FORM_implicit_const, in TestAllForms()
203 CUDie.addAttribute(Attr_DW_FORM_udata, DW_FORM_udata, UData[0]); in TestAllForms()
209 CUDie.addAttribute(Attr_DW_FORM_GNU_ref_alt, DW_FORM_GNU_ref_alt, in TestAllForms()
214 CUDie.addAttribute(Attr_DW_FORM_sec_offset, DW_FORM_sec_offset, in TestAllForms()
221 CUDie.addAttribute(Attr_Last, DW_FORM_addr, AddrValue); in TestAllForms()
470 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TestChildren() local
472 CUDie.addAttribute(DW_AT_name, DW_FORM_strp, "/tmp/main.c"); in TestChildren()
473 CUDie.addAttribute(DW_AT_language, DW_FORM_data2, DW_LANG_C); in TestChildren()
475 dwarfgen::DIE SubprogramDie = CUDie.addChild(DW_TAG_subprogram); in TestChildren()
480 dwarfgen::DIE IntDie = CUDie.addChild(DW_TAG_base_type); in TestChildren()
849 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TestAddresses() local
851 CUDie.addAttribute(DW_AT_name, DW_FORM_strp, "/tmp/main.c"); in TestAddresses()
852 CUDie.addAttribute(DW_AT_language, DW_FORM_data2, DW_LANG_C); in TestAddresses()
855 dwarfgen::DIE SubprogramNoPC = CUDie.addChild(DW_TAG_subprogram); in TestAddresses()
859 dwarfgen::DIE SubprogramLowPC = CUDie.addChild(DW_TAG_subprogram); in TestAddresses()
867 dwarfgen::DIE SubprogramLowHighPC = CUDie.addChild(DW_TAG_subprogram); in TestAddresses()
1021 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TEST() local
1023 CUDie.addStrOffsetsBaseAttribute(); in TEST()
1031 CUDie.addAttribute(Attr1, DW_FORM_strp, String1); in TEST()
1034 CUDie.addAttribute(Attr2, DW_FORM_strx, String2); in TEST()
1037 CUDie.addAttribute(Attr3, DW_FORM_strx, String1); in TEST()
1084 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TEST() local
1090 CUDie.addAttribute(Attr1, DW_FORM_strp, String1); in TEST()
1137 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TEST() local
1138 dwarfgen::DIE A = CUDie.addChild((dwarf::Tag)Tag::A); in TEST()
1159 auto CUDie = U->getUnitDIE(false); in TEST() local
1160 EXPECT_TRUE(CUDie.isValid()); in TEST()
1163 auto ParentDie = CUDie.getParent(); in TEST()
1165 auto SiblingDie = CUDie.getSibling(); in TEST()
1169 auto A = CUDie.getFirstChild(); in TEST()
1194 EXPECT_EQ(A.getParent(), CUDie); in TEST()
1314 auto CUDie = CU.getUnitDIE(); in TEST() local
1315 CUDie.addChild((dwarf::Tag)Tag::A); in TEST()
1316 CUDie.addChild((dwarf::Tag)Tag::B); in TEST()
1331 auto CUDie = U->getUnitDIE(false); in TEST() local
1332 EXPECT_TRUE(CUDie.isValid()); in TEST()
1339 for (auto Die : CUDie.children()) { in TEST()
1389 auto CUDie = U->getUnitDIE(false); in TEST() local
1390 EXPECT_TRUE(CUDie.isValid()); in TEST()
1395 EXPECT_EQ(CUDie.begin(), CUDie.end()); in TEST()
1415 auto CUDie = CU.getUnitDIE(); in TEST() local
1417 CUDie.addAttribute(DW_AT_name, DW_FORM_strp, CUPath.data()); in TEST()
1420 CUDie.addAttribute(DW_AT_declaration, DW_FORM_flag_present); in TEST()
1422 CUDie.addAttribute(DW_AT_low_pc, DW_FORM_addr, CULowPC); in TEST()
1437 auto CUDie = U->getUnitDIE(false); in TEST() local
1438 EXPECT_TRUE(CUDie.isValid()); in TEST()
1440 auto R = CUDie.attributes(); in TEST()
1476 auto CUDie = CU.getUnitDIE(); in TEST() local
1477 auto FuncSpecDie = CUDie.addChild(DW_TAG_subprogram); in TEST()
1478 auto FuncAbsDie = CUDie.addChild(DW_TAG_subprogram); in TEST()
1481 auto FuncAbsDie2 = CUDie.addChild(DW_TAG_subprogram); in TEST()
1482 auto FuncDie = CUDie.addChild(DW_TAG_subprogram); in TEST()
1483 auto VarAbsDie = CUDie.addChild(DW_TAG_variable); in TEST()
1484 auto VarDie = CUDie.addChild(DW_TAG_variable); in TEST()
1506 auto CUDie = U->getUnitDIE(false); in TEST() local
1507 EXPECT_TRUE(CUDie.isValid()); in TEST()
1509 auto FuncSpecDie = CUDie.getFirstChild(); in TEST()
1690 auto CUDie = CU.getUnitDIE(); in TEST() local
1691 auto FuncSpecDie = CUDie.addChild(DW_TAG_subprogram); in TEST()
1692 auto FuncDie = CUDie.addChild(DW_TAG_subprogram); in TEST()
1709 auto CUDie = U->getUnitDIE(false); in TEST() local
1710 EXPECT_TRUE(CUDie.isValid()); in TEST()
1712 auto FuncSpecDie = CUDie.getFirstChild(); in TEST()
1747 dwarfgen::DIE CUDie = CU.getUnitDIE(); in TEST() local
1752 auto FirstVal1DIE = CUDie.addChild(DW_TAG_class_type); in TEST()
1755 auto SecondVal1DIE = CUDie.addChild(DW_TAG_class_type); in TEST()
1758 auto Val2DIE = CUDie.addChild(DW_TAG_class_type); in TEST()