llvm.org GIT mirror llvm / 79069f9
Format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201746 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 6 years ago
1 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
9090 DIEString MemberStr(&Four, "member");
9191 Member->addValue(dwarf::DW_AT_name, dwarf::DW_FORM_strp, &MemberStr);
9292 DIEInteger Zero(0);
93 Member->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1, &Zero);
93 Member->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1,
94 &Zero);
9495
9596 Unnamed.addChild(Member);
9697
120121 DIEString Mem1Str(&Four, "mem1");
121122 Mem1->addValue(dwarf::DW_AT_name, dwarf::DW_FORM_strp, &Mem1Str);
122123 DIEInteger Zero(0);
123 Mem1->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1, &Zero);
124 Mem1->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1,
125 &Zero);
124126
125127 Unnamed.addChild(Mem1);
126128
127129 DIE *Mem2 = new DIE(dwarf::DW_TAG_member);
128130 DIEString Mem2Str(&Four, "mem2");
129131 Mem2->addValue(dwarf::DW_AT_name, dwarf::DW_FORM_strp, &Mem2Str);
130 Mem2->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1, &Four);
132 Mem2->addValue(dwarf::DW_AT_data_member_location, dwarf::DW_FORM_data1,
133 &Four);
131134
132135 Unnamed.addChild(Mem2);
133136
281284 DIE PtrToFooMem(dwarf::DW_TAG_ptr_to_member_type);
282285 DIEEntry FooEntry(&Foo);
283286 PtrToFooMem.addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, &FooEntry);
284 PtrToFooMem.addValue(dwarf::DW_AT_containing_type, dwarf::DW_FORM_ref4, &FooEntry);
287 PtrToFooMem.addValue(dwarf::DW_AT_containing_type, dwarf::DW_FORM_ref4,
288 &FooEntry);
285289
286290 DIEEntry PtrToFooMemRef(&PtrToFooMem);
287291 Mem->addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, &PtrToFooMemRef);