Lines Matching refs:dwarf

58     : DwarfUnit(dwarf::DW_TAG_compile_unit, Node, A, DW, DWU), UniqueID(UID) {  in DwarfCompileUnit()
65 void DwarfCompileUnit::addLabelAddress(DIE &Die, dwarf::Attribute Attribute, in addLabelAddress()
80 DD->getDwarfVersion() >= 5 ? dwarf::DW_FORM_addrx in addLabelAddress()
81 : dwarf::DW_FORM_GNU_addr_index, in addLabelAddress()
86 dwarf::Attribute Attribute, in addLocalLabelAddress()
92 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_addr, in addLocalLabelAddress()
95 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_addr, in addLocalLabelAddress()
137 addDIEEntry(*VariableDIE, dwarf::DW_AT_specification, *VariableSpecDIE); in getOrCreateGlobalVariableDIE()
145 addString(*VariableDIE, dwarf::DW_AT_name, GV->getDisplayName()); in getOrCreateGlobalVariableDIE()
150 addFlag(*VariableDIE, dwarf::DW_AT_external); in getOrCreateGlobalVariableDIE()
157 addFlag(*VariableDIE, dwarf::DW_AT_declaration); in getOrCreateGlobalVariableDIE()
162 addUInt(*VariableDIE, dwarf::DW_AT_alignment, dwarf::DW_FORM_udata, in getOrCreateGlobalVariableDIE()
220 addUInt(*Loc, dwarf::DW_FORM_data1, in getOrCreateGlobalVariableDIE()
221 PointerSize == 4 ? dwarf::DW_OP_const4u in getOrCreateGlobalVariableDIE()
222 : dwarf::DW_OP_const8u); in getOrCreateGlobalVariableDIE()
225 addExpr(*Loc, dwarf::DW_FORM_udata, in getOrCreateGlobalVariableDIE()
228 addUInt(*Loc, dwarf::DW_FORM_data1, dwarf::DW_OP_GNU_const_index); in getOrCreateGlobalVariableDIE()
229 addUInt(*Loc, dwarf::DW_FORM_udata, in getOrCreateGlobalVariableDIE()
233 addUInt(*Loc, dwarf::DW_FORM_data1, in getOrCreateGlobalVariableDIE()
234 DD->useGNUTLSOpcode() ? dwarf::DW_OP_GNU_push_tls_address in getOrCreateGlobalVariableDIE()
235 : dwarf::DW_OP_form_tls_address); in getOrCreateGlobalVariableDIE()
251 addBlock(*VariableDIE, dwarf::DW_AT_location, DwarfExpr->finalize()); in getOrCreateGlobalVariableDIE()
307 addSectionLabel(getUnitDie(), dwarf::DW_AT_stmt_list, LineTableStartSym, in initStmtList()
322 addLabelAddress(D, dwarf::DW_AT_low_pc, Begin); in attachLowHighPC()
324 addLabelAddress(D, dwarf::DW_AT_high_pc, End); in attachLowHighPC()
326 addLabelDelta(D, dwarf::DW_AT_high_pc, End, Begin); in attachLowHighPC()
339 addFlag(*SPDie, dwarf::DW_AT_APPLE_omit_frame_ptr); in updateSubprogramScopeDIE()
345 addUInt(*Loc, dwarf::DW_FORM_data1, dwarf::DW_OP_call_frame_cfa); in updateSubprogramScopeDIE()
346 addBlock(*SPDie, dwarf::DW_AT_frame_base, Loc); in updateSubprogramScopeDIE()
351 addAddress(*SPDie, dwarf::DW_AT_frame_base, Location); in updateSubprogramScopeDIE()
444 addUInt(ScopeDIE, dwarf::DW_AT_ranges, dwarf::DW_FORM_rnglistx, Index); in addScopeRangeList()
446 addSectionDelta(ScopeDIE, dwarf::DW_AT_ranges, List.getSym(), in addScopeRangeList()
449 addSectionLabel(ScopeDIE, dwarf::DW_AT_ranges, List.getSym(), in addScopeRangeList()
484 auto ScopeDIE = DIE::get(DIEValueAllocator, dwarf::DW_TAG_inlined_subroutine); in constructInlinedScopeDIE()
485 addDIEEntry(*ScopeDIE, dwarf::DW_AT_abstract_origin, *OriginDIE); in constructInlinedScopeDIE()
491 addUInt(*ScopeDIE, dwarf::DW_AT_call_file, None, in constructInlinedScopeDIE()
493 addUInt(*ScopeDIE, dwarf::DW_AT_call_line, None, IA->getLine()); in constructInlinedScopeDIE()
495 addUInt(*ScopeDIE, dwarf::DW_AT_GNU_discriminator, None, in constructInlinedScopeDIE()
511 auto ScopeDIE = DIE::get(DIEValueAllocator, dwarf::DW_TAG_lexical_block); in constructLexicalScopeDIE()
554 addLocationList(*VariableDie, dwarf::DW_AT_location, Offset); in constructVariableDIEImpl()
579 addBlock(*VariableDie, dwarf::DW_AT_location, DwarfExpr.finalize()); in constructVariableDIEImpl()
604 Ops.push_back(dwarf::DW_OP_plus_uconst); in constructVariableDIEImpl()
616 addBlock(*VariableDie, dwarf::DW_AT_location, DwarfExpr.finalize()); in constructVariableDIEImpl()
634 if (!Array || Array->getTag() != dwarf::DW_TAG_array_type) in dependencies()
752 addDIEEntry(ScopeDIE, dwarf::DW_AT_object_pointer, *ObjectPointer); in constructSubprogramScopeDIE()
764 DIE::get(DIEValueAllocator, dwarf::DW_TAG_unspecified_parameters)); in constructSubprogramScopeDIE()
812 AbsDef = &ContextCU->createAndAddDIE(dwarf::DW_TAG_subprogram, *ContextDIE, nullptr); in constructAbstractSubprogramScopeDIE()
816 ContextCU->addUInt(*AbsDef, dwarf::DW_AT_inline, None, dwarf::DW_INL_inlined); in constructAbstractSubprogramScopeDIE()
818 ContextCU->addDIEEntry(*AbsDef, dwarf::DW_AT_object_pointer, *ObjectPointer); in constructAbstractSubprogramScopeDIE()
827 createAndAddDIE(dwarf::DW_TAG_call_site, ScopeDIE, nullptr); in constructCallSiteEntryDIE()
833 addDIEEntry(CallSiteDIE, dwarf::DW_AT_call_origin, *CalleeDIE); in constructCallSiteEntryDIE()
837 addFlag(CallSiteDIE, dwarf::DW_AT_call_tail_call); in constructCallSiteEntryDIE()
842 addAddressExpr(CallSiteDIE, dwarf::DW_AT_call_return_pc, PCOffset); in constructCallSiteEntryDIE()
849 DIE *IMDie = DIE::get(DIEValueAllocator, (dwarf::Tag)Module->getTag()); in constructImportedEntityDIE()
867 addDIEEntry(*IMDie, dwarf::DW_AT_import, *EntityDie); in constructImportedEntityDIE()
870 addString(*IMDie, dwarf::DW_AT_name, Name); in constructImportedEntityDIE()
880 addDIEEntry(*D, dwarf::DW_AT_abstract_origin, *AbsSPDIE); in finishSubprogramDefinition()
897 addDIEEntry(*Die, dwarf::DW_AT_abstract_origin, *AbsEntity->getDIE()); in finishEntityDefinition()
910 addLabelAddress(*Die, dwarf::DW_AT_low_pc, Sym); in finishEntityDefinition()
943 dwarf::UnitType UT = Skeleton ? dwarf::DW_UT_split_compile in emitHeader()
944 : DD->useSplitDwarf() ? dwarf::DW_UT_skeleton in emitHeader()
945 : dwarf::DW_UT_compile; in emitHeader()
947 if (DD->getDwarfVersion() >= 5 && UT != dwarf::DW_UT_compile) in emitHeader()
1019 addComplexAddress(DV, Die, dwarf::DW_AT_location, Location); in addVariableAddress()
1021 addAddress(Die, dwarf::DW_AT_location, Location); in addVariableAddress()
1025 void DwarfCompileUnit::addAddress(DIE &Die, dwarf::Attribute Attribute, in addAddress()
1047 dwarf::Attribute Attribute, in addComplexAddress()
1067 void DwarfCompileUnit::addLocationList(DIE &Die, dwarf::Attribute Attribute, in addLocationList()
1069 dwarf::Form Form = DD->getDwarfVersion() >= 4 ? dwarf::DW_FORM_sec_offset in addLocationList()
1070 : dwarf::DW_FORM_data4; in addLocationList()
1078 addString(VariableDie, dwarf::DW_AT_name, Name); in applyVariableAttributes()
1082 addUInt(VariableDie, dwarf::DW_AT_alignment, dwarf::DW_FORM_udata, in applyVariableAttributes()
1088 addFlag(VariableDie, dwarf::DW_AT_artificial); in applyVariableAttributes()
1095 addString(LabelDie, dwarf::DW_AT_name, Name); in applyLabelAttributes()
1101 void DwarfCompileUnit::addExpr(DIELoc &Die, dwarf::Form Form, in addExpr()
1103 Die.addValue(DIEValueAllocator, (dwarf::Attribute)0, Form, DIEExpr(Expr)); in addExpr()
1106 void DwarfCompileUnit::addAddressExpr(DIE &Die, dwarf::Attribute Attribute, in addAddressExpr()
1108 Die.addValue(DIEValueAllocator, Attribute, dwarf::DW_FORM_addr, in addAddressExpr()
1133 getDwarfVersion() >= 5 ? dwarf::DW_AT_addr_base in addAddrTableBase()
1134 : dwarf::DW_AT_GNU_addr_base, in addAddrTableBase()