Lines Matching refs:dwarf
121 addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID); in addSourceLine()
122 addUInt(Die, dwarf::DW_AT_decl_line, 0, Line); in addSourceLine()
138 addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID); in addSourceLine()
139 addUInt(Die, dwarf::DW_AT_decl_line, 0, Line); in addSourceLine()
157 addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID); in addSourceLine()
158 addUInt(Die, dwarf::DW_AT_decl_line, 0, Line); in addSourceLine()
173 addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID); in addSourceLine()
174 addUInt(Die, dwarf::DW_AT_decl_line, 0, Line); in addSourceLine()
191 addUInt(Die, dwarf::DW_AT_decl_file, 0, FileID); in addSourceLine()
192 addUInt(Die, dwarf::DW_AT_decl_line, 0, Line); in addSourceLine()
200 addComplexAddress(DV, Die, dwarf::DW_AT_location, Location); in addVariableAddress()
202 addBlockByrefAddress(DV, Die, dwarf::DW_AT_location, Location); in addVariableAddress()
204 addAddress(Die, dwarf::DW_AT_location, Location); in addVariableAddress()
212 addUInt(TheDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_reg0 + DWReg); in addRegisterOp()
214 addUInt(TheDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_regx); in addRegisterOp()
215 addUInt(TheDie, 0, dwarf::DW_FORM_udata, DWReg); in addRegisterOp()
227 addUInt(TheDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_fbreg); in addRegisterOffset()
229 addUInt(TheDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_breg0 + DWReg); in addRegisterOffset()
231 addUInt(TheDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_bregx); in addRegisterOffset()
232 addUInt(TheDie, 0, dwarf::DW_FORM_udata, DWReg); in addRegisterOffset()
234 addSInt(TheDie, 0, dwarf::DW_FORM_sdata, Offset); in addRegisterOffset()
278 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst); in addComplexAddress()
279 addUInt(Block, 0, dwarf::DW_FORM_udata, DV->getAddrElement(++i)); in addComplexAddress()
281 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); in addComplexAddress()
359 if (Tag == dwarf::DW_TAG_pointer_type) { in addBlockByrefAddress()
397 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_reg0 + Reg); in addBlockByrefAddress()
399 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_regx); in addBlockByrefAddress()
400 addUInt(Block, 0, dwarf::DW_FORM_udata, Reg); in addBlockByrefAddress()
404 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_breg0 + Reg); in addBlockByrefAddress()
406 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_bregx); in addBlockByrefAddress()
407 addUInt(Block, 0, dwarf::DW_FORM_udata, Reg); in addBlockByrefAddress()
410 addUInt(Block, 0, dwarf::DW_FORM_sdata, Location.getOffset()); in addBlockByrefAddress()
416 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); in addBlockByrefAddress()
422 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst); in addBlockByrefAddress()
423 addUInt(Block, 0, dwarf::DW_FORM_udata, forwardingFieldOffset); in addBlockByrefAddress()
428 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); in addBlockByrefAddress()
434 addUInt(Block, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst); in addBlockByrefAddress()
435 addUInt(Block, 0, dwarf::DW_FORM_udata, varFieldOffset); in addBlockByrefAddress()
447 unsigned form = dwarf::DW_FORM_udata; in addConstantValue()
449 case 8: form = dwarf::DW_FORM_data1; break; in addConstantValue()
450 case 16: form = dwarf::DW_FORM_data2; break; in addConstantValue()
451 case 32: form = dwarf::DW_FORM_data4; break; in addConstantValue()
452 case 64: form = dwarf::DW_FORM_data8; break; in addConstantValue()
458 (BTy.getEncoding() == dwarf::DW_ATE_signed in addConstantValue()
459 || BTy.getEncoding() == dwarf::DW_ATE_signed_char)) in addConstantValue()
464 addBlock(Die, dwarf::DW_AT_const_value, 0, Block); in addConstantValue()
486 addUInt(Block, 0, dwarf::DW_FORM_data1, in addConstantFPValue()
489 addBlock(Die, dwarf::DW_AT_const_value, 0, Block); in addConstantFPValue()
500 case 8: form = dwarf::DW_FORM_data1; break; in addConstantValue()
501 case 16: form = dwarf::DW_FORM_data2; break; in addConstantValue()
502 case 32: form = dwarf::DW_FORM_data4; break; in addConstantValue()
503 case 64: form = dwarf::DW_FORM_data8; break; in addConstantValue()
505 form = Unsigned ? dwarf::DW_FORM_udata : dwarf::DW_FORM_sdata; in addConstantValue()
508 addUInt(Die, dwarf::DW_AT_const_value, form, CI->getZExtValue()); in addConstantValue()
510 addSInt(Die, dwarf::DW_AT_const_value, form, CI->getSExtValue()); in addConstantValue()
528 addUInt(Block, 0, dwarf::DW_FORM_data1, in addConstantValue()
531 addBlock(Die, dwarf::DW_AT_const_value, 0, Block); in addConstantValue()
574 TyDIE = new DIE(dwarf::DW_TAG_base_type); in getOrCreateTypeDIE()
598 Entity->addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, Entry); in addType()
608 Entity->addValue(dwarf::DW_AT_type, dwarf::DW_FORM_ref4, Entry); in addType()
629 if (SPTag != dwarf::DW_TAG_subroutine_type) in addPubTypes()
645 Buffer.setTag(dwarf::DW_TAG_base_type); in constructTypeDIE()
646 addUInt(&Buffer, dwarf::DW_AT_encoding, dwarf::DW_FORM_data1, in constructTypeDIE()
651 addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); in constructTypeDIE()
653 addUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size); in constructTypeDIE()
664 if (Tag == dwarf::DW_TAG_inheritance) Tag = dwarf::DW_TAG_reference_type; in constructTypeDIE()
674 addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); in constructTypeDIE()
678 addUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size); in constructTypeDIE()
695 case dwarf::DW_TAG_vector_type: in constructTypeDIE()
696 case dwarf::DW_TAG_array_type: in constructTypeDIE()
699 case dwarf::DW_TAG_enumeration_type: { in constructTypeDIE()
713 case dwarf::DW_TAG_subroutine_type: { in constructTypeDIE()
724 DIE *Arg = new DIE(dwarf::DW_TAG_unspecified_parameters); in constructTypeDIE()
728 DIE *Arg = new DIE(dwarf::DW_TAG_formal_parameter); in constructTypeDIE()
735 addUInt(&Buffer, dwarf::DW_AT_prototyped, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
738 case dwarf::DW_TAG_structure_type: in constructTypeDIE()
739 case dwarf::DW_TAG_union_type: in constructTypeDIE()
740 case dwarf::DW_TAG_class_type: { in constructTypeDIE()
757 addUInt(ElemDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in constructTypeDIE()
758 dwarf::DW_ACCESS_protected); in constructTypeDIE()
760 addUInt(ElemDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in constructTypeDIE()
761 dwarf::DW_ACCESS_private); in constructTypeDIE()
763 addUInt(ElemDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in constructTypeDIE()
764 dwarf::DW_ACCESS_public); in constructTypeDIE()
766 addUInt(ElemDie, dwarf::DW_AT_explicit, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
770 ElemDie = new DIE(dwarf::DW_TAG_variable); in constructTypeDIE()
771 addString(ElemDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, in constructTypeDIE()
774 addUInt(ElemDie, dwarf::DW_AT_declaration, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
775 addUInt(ElemDie, dwarf::DW_AT_external, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
785 addUInt(&Buffer, dwarf::DW_AT_APPLE_block, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
789 addUInt(&Buffer, dwarf::DW_AT_APPLE_runtime_class, in constructTypeDIE()
790 dwarf::DW_FORM_data1, RLang); in constructTypeDIE()
794 addDIEEntry(&Buffer, dwarf::DW_AT_containing_type, dwarf::DW_FORM_ref4, in constructTypeDIE()
802 addUInt(&Buffer, dwarf::DW_AT_APPLE_objc_complete_type, in constructTypeDIE()
803 dwarf::DW_FORM_flag, 1); in constructTypeDIE()
805 if (Tag == dwarf::DW_TAG_class_type) in constructTypeDIE()
816 addString(&Buffer, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); in constructTypeDIE()
818 if (Tag == dwarf::DW_TAG_enumeration_type || Tag == dwarf::DW_TAG_class_type in constructTypeDIE()
819 || Tag == dwarf::DW_TAG_structure_type || Tag == dwarf::DW_TAG_union_type) in constructTypeDIE()
823 addUInt(&Buffer, dwarf::DW_AT_byte_size, 0, Size); in constructTypeDIE()
827 addUInt(&Buffer, dwarf::DW_AT_declaration, dwarf::DW_FORM_flag, 1); in constructTypeDIE()
829 addUInt(&Buffer, dwarf::DW_AT_byte_size, 0, 0); in constructTypeDIE()
846 ParamDIE = new DIE(dwarf::DW_TAG_template_type_parameter); in getOrCreateTemplateTypeParameterDIE()
848 addString(ParamDIE, dwarf::DW_AT_name, dwarf::DW_FORM_string, TP.getName()); in getOrCreateTemplateTypeParameterDIE()
860 ParamDIE = new DIE(dwarf::DW_TAG_template_value_parameter); in getOrCreateTemplateValueParameterDIE()
863 addString(ParamDIE, dwarf::DW_AT_name, dwarf::DW_FORM_string, TPV.getName()); in getOrCreateTemplateValueParameterDIE()
864 addUInt(ParamDIE, dwarf::DW_AT_const_value, dwarf::DW_FORM_udata, in getOrCreateTemplateValueParameterDIE()
874 NDie = new DIE(dwarf::DW_TAG_namespace); in getOrCreateNameSpace()
877 addString(NDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, NS.getName()); in getOrCreateNameSpace()
885 DIE *DW_Subrange = new DIE(dwarf::DW_TAG_subrange_type); in constructSubrangeDIE()
886 addDIEEntry(DW_Subrange, dwarf::DW_AT_type, dwarf::DW_FORM_ref4, IndexTy); in constructSubrangeDIE()
901 addSInt(DW_Subrange, dwarf::DW_AT_lower_bound, 0, L); in constructSubrangeDIE()
902 addSInt(DW_Subrange, dwarf::DW_AT_upper_bound, 0, H); in constructSubrangeDIE()
909 Buffer.setTag(dwarf::DW_TAG_array_type); in constructArrayTypeDIE()
910 if (CTy->getTag() == dwarf::DW_TAG_vector_type) in constructArrayTypeDIE()
911 addUInt(&Buffer, dwarf::DW_AT_GNU_vector, dwarf::DW_FORM_flag, 1); in constructArrayTypeDIE()
921 IdxTy = new DIE(dwarf::DW_TAG_base_type); in constructArrayTypeDIE()
922 addUInt(IdxTy, dwarf::DW_AT_byte_size, 0, sizeof(int32_t)); in constructArrayTypeDIE()
923 addUInt(IdxTy, dwarf::DW_AT_encoding, dwarf::DW_FORM_data1, in constructArrayTypeDIE()
924 dwarf::DW_ATE_signed); in constructArrayTypeDIE()
932 if (Element.getTag() == dwarf::DW_TAG_subrange_type) in constructArrayTypeDIE()
939 DIE *Enumerator = new DIE(dwarf::DW_TAG_enumerator); in constructEnumTypeDIE()
941 addString(Enumerator, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); in constructEnumTypeDIE()
943 addSInt(Enumerator, dwarf::DW_AT_const_value, dwarf::DW_FORM_sdata, Value); in constructEnumTypeDIE()
952 addString(MemberDie, dwarf::DW_AT_name, dwarf::DW_FORM_string, Name); in createMemberDIE()
959 addUInt(MemLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus_uconst); in createMemberDIE()
966 addUInt(MemberDie, dwarf::DW_AT_byte_size, 0, DT.getOriginalTypeSize()>>3); in createMemberDIE()
967 addUInt(MemberDie, dwarf::DW_AT_bit_size, 0, DT.getSizeInBits()); in createMemberDIE()
978 addUInt(MemberDie, dwarf::DW_AT_bit_offset, 0, Offset); in createMemberDIE()
982 addUInt(MemLocationDie, 0, dwarf::DW_FORM_udata, FieldOffset >> 3); in createMemberDIE()
986 addUInt(MemLocationDie, 0, dwarf::DW_FORM_udata, DT.getOffsetInBits() >> 3); in createMemberDIE()
988 if (DT.getTag() == dwarf::DW_TAG_inheritance in createMemberDIE()
996 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_dup); in createMemberDIE()
997 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); in createMemberDIE()
998 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_constu); in createMemberDIE()
999 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_udata, DT.getOffsetInBits()); in createMemberDIE()
1000 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_minus); in createMemberDIE()
1001 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_deref); in createMemberDIE()
1002 addUInt(VBaseLocationDie, 0, dwarf::DW_FORM_data1, dwarf::DW_OP_plus); in createMemberDIE()
1004 addBlock(MemberDie, dwarf::DW_AT_data_member_location, 0, in createMemberDIE()
1007 addBlock(MemberDie, dwarf::DW_AT_data_member_location, 0, MemLocationDie); in createMemberDIE()
1010 addUInt(MemberDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in createMemberDIE()
1011 dwarf::DW_ACCESS_protected); in createMemberDIE()
1013 addUInt(MemberDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in createMemberDIE()
1014 dwarf::DW_ACCESS_private); in createMemberDIE()
1016 else if (DT.getCompileUnit().getLanguage() == dwarf::DW_LANG_C_plus_plus) in createMemberDIE()
1017 addUInt(MemberDie, dwarf::DW_AT_accessibility, dwarf::DW_FORM_flag, in createMemberDIE()
1018 dwarf::DW_ACCESS_public); in createMemberDIE()
1020 addUInt(MemberDie, dwarf::DW_AT_virtuality, dwarf::DW_FORM_flag, in createMemberDIE()
1021 dwarf::DW_VIRTUALITY_virtual); in createMemberDIE()
1026 addString(MemberDie, dwarf::DW_AT_APPLE_property_name, dwarf::DW_FORM_string, in createMemberDIE()
1030 addString(MemberDie, dwarf::DW_AT_APPLE_property_getter, in createMemberDIE()
1031 dwarf::DW_FORM_string, GetterName); in createMemberDIE()
1034 addString(MemberDie, dwarf::DW_AT_APPLE_property_setter, in createMemberDIE()
1035 dwarf::DW_FORM_string, SetterName); in createMemberDIE()
1038 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_readonly; in createMemberDIE()
1040 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_readwrite; in createMemberDIE()
1042 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_assign; in createMemberDIE()
1044 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_retain; in createMemberDIE()
1046 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_copy; in createMemberDIE()
1048 PropertyAttributes |= dwarf::DW_APPLE_PROPERTY_nonatomic; in createMemberDIE()
1050 addUInt(MemberDie, dwarf::DW_AT_APPLE_property_attribute, 0, in createMemberDIE()