Lines Matching refs:dwarf

52   if (DwarfFormat == dwarf::DWARF64) {  in emitListsTableHeaderStart()
54 S.emitInt32(dwarf::DW_LENGTH_DWARF64); in emitListsTableHeaderStart()
58 dwarf::getDwarfOffsetByteSize(DwarfFormat)); in emitListsTableHeaderStart()
204 MCOS->emitInt8(dwarf::DW_LNS_set_file); in emitOne()
209 MCOS->emitInt8(dwarf::DW_LNS_set_column); in emitOne()
216 MCOS->emitInt8(dwarf::DW_LNS_extended_op); in emitOne()
218 MCOS->emitInt8(dwarf::DW_LNE_set_discriminator); in emitOne()
223 MCOS->emitInt8(dwarf::DW_LNS_set_isa); in emitOne()
228 MCOS->emitInt8(dwarf::DW_LNS_negate_stmt); in emitOne()
231 MCOS->emitInt8(dwarf::DW_LNS_set_basic_block); in emitOne()
233 MCOS->emitInt8(dwarf::DW_LNS_set_prologue_end); in emitOne()
235 MCOS->emitInt8(dwarf::DW_LNS_set_epilogue_begin); in emitOne()
360 dwarf::getDwarfOffsetByteSize(MCOS->getContext().getDwarfFormat()); in emitRef()
426 MCOS->emitULEB128IntValue(dwarf::DW_LNCT_path); in emitV5FileDirTables()
427 MCOS->emitULEB128IntValue(LineStr ? dwarf::DW_FORM_line_strp in emitV5FileDirTables()
428 : dwarf::DW_FORM_string); in emitV5FileDirTables()
464 MCOS->emitULEB128IntValue(dwarf::DW_LNCT_path); in emitV5FileDirTables()
465 MCOS->emitULEB128IntValue(LineStr ? dwarf::DW_FORM_line_strp in emitV5FileDirTables()
466 : dwarf::DW_FORM_string); in emitV5FileDirTables()
467 MCOS->emitULEB128IntValue(dwarf::DW_LNCT_directory_index); in emitV5FileDirTables()
468 MCOS->emitULEB128IntValue(dwarf::DW_FORM_udata); in emitV5FileDirTables()
470 MCOS->emitULEB128IntValue(dwarf::DW_LNCT_MD5); in emitV5FileDirTables()
471 MCOS->emitULEB128IntValue(dwarf::DW_FORM_data16); in emitV5FileDirTables()
474 MCOS->emitULEB128IntValue(dwarf::DW_LNCT_LLVM_source); in emitV5FileDirTables()
475 MCOS->emitULEB128IntValue(LineStr ? dwarf::DW_FORM_line_strp in emitV5FileDirTables()
476 : dwarf::DW_FORM_string); in emitV5FileDirTables()
507 unsigned OffsetSize = dwarf::getDwarfOffsetByteSize(context.getDwarfFormat()); in Emit()
707 Out.push_back(dwarf::DW_LNS_const_add_pc); in encode()
709 Out.push_back(dwarf::DW_LNS_advance_pc); in encode()
712 Out.push_back(dwarf::DW_LNS_extended_op); in encode()
714 Out.push_back(dwarf::DW_LNE_end_sequence); in encode()
725 Out.push_back(dwarf::DW_LNS_advance_line); in encode()
735 Out.push_back(dwarf::DW_LNS_copy); in encode()
754 Out.push_back(dwarf::DW_LNS_const_add_pc); in encode()
761 Out.push_back(dwarf::DW_LNS_advance_pc); in encode()
765 Out.push_back(dwarf::DW_LNS_copy); in encode()
786 MCOS->emitULEB128IntValue(dwarf::DW_TAG_compile_unit); in EmitGenDwarfAbbrev()
787 MCOS->emitInt8(dwarf::DW_CHILDREN_yes); in EmitGenDwarfAbbrev()
788 dwarf::Form SecOffsetForm = in EmitGenDwarfAbbrev()
790 ? dwarf::DW_FORM_sec_offset in EmitGenDwarfAbbrev()
791 : (context.getDwarfFormat() == dwarf::DWARF64 ? dwarf::DW_FORM_data8 in EmitGenDwarfAbbrev()
792 : dwarf::DW_FORM_data4); in EmitGenDwarfAbbrev()
793 EmitAbbrev(MCOS, dwarf::DW_AT_stmt_list, SecOffsetForm); in EmitGenDwarfAbbrev()
796 EmitAbbrev(MCOS, dwarf::DW_AT_ranges, SecOffsetForm); in EmitGenDwarfAbbrev()
798 EmitAbbrev(MCOS, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr); in EmitGenDwarfAbbrev()
799 EmitAbbrev(MCOS, dwarf::DW_AT_high_pc, dwarf::DW_FORM_addr); in EmitGenDwarfAbbrev()
801 EmitAbbrev(MCOS, dwarf::DW_AT_name, dwarf::DW_FORM_string); in EmitGenDwarfAbbrev()
803 EmitAbbrev(MCOS, dwarf::DW_AT_comp_dir, dwarf::DW_FORM_string); in EmitGenDwarfAbbrev()
806 EmitAbbrev(MCOS, dwarf::DW_AT_APPLE_flags, dwarf::DW_FORM_string); in EmitGenDwarfAbbrev()
807 EmitAbbrev(MCOS, dwarf::DW_AT_producer, dwarf::DW_FORM_string); in EmitGenDwarfAbbrev()
808 EmitAbbrev(MCOS, dwarf::DW_AT_language, dwarf::DW_FORM_data2); in EmitGenDwarfAbbrev()
813 MCOS->emitULEB128IntValue(dwarf::DW_TAG_label); in EmitGenDwarfAbbrev()
814 MCOS->emitInt8(dwarf::DW_CHILDREN_no); in EmitGenDwarfAbbrev()
815 EmitAbbrev(MCOS, dwarf::DW_AT_name, dwarf::DW_FORM_string); in EmitGenDwarfAbbrev()
816 EmitAbbrev(MCOS, dwarf::DW_AT_decl_file, dwarf::DW_FORM_data4); in EmitGenDwarfAbbrev()
817 EmitAbbrev(MCOS, dwarf::DW_AT_decl_line, dwarf::DW_FORM_data4); in EmitGenDwarfAbbrev()
818 EmitAbbrev(MCOS, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr); in EmitGenDwarfAbbrev()
838 dwarf::getUnitLengthFieldByteSize(context.getDwarfFormat()); in EmitGenDwarfAranges()
839 unsigned OffsetSize = dwarf::getDwarfOffsetByteSize(context.getDwarfFormat()); in EmitGenDwarfAranges()
861 if (context.getDwarfFormat() == dwarf::DWARF64) in EmitGenDwarfAranges()
863 MCOS->emitInt32(dwarf::DW_LENGTH_DWARF64); in EmitGenDwarfAranges()
925 dwarf::getUnitLengthFieldByteSize(context.getDwarfFormat()); in EmitGenDwarfInfo()
926 unsigned OffsetSize = dwarf::getDwarfOffsetByteSize(context.getDwarfFormat()); in EmitGenDwarfInfo()
928 if (context.getDwarfFormat() == dwarf::DWARF64) in EmitGenDwarfInfo()
930 MCOS->emitInt32(dwarf::DW_LENGTH_DWARF64); in EmitGenDwarfInfo()
946 MCOS->emitInt8(dwarf::DW_UT_compile); in EmitGenDwarfInfo()
1045 MCOS->emitInt16(dwarf::DW_LANG_Mips_Assembler); in EmitGenDwarfInfo()
1104 MCOS->emitInt8(dwarf::DW_RLE_start_length); in emitGenDwarfRanges()
1108 MCOS->emitInt8(dwarf::DW_RLE_end_of_list); in emitGenDwarfRanges()
1259 case dwarf::DW_EH_PE_absptr: in getSizeForEncoding()
1260 case dwarf::DW_EH_PE_signed: in getSizeForEncoding()
1262 case dwarf::DW_EH_PE_udata2: in getSizeForEncoding()
1263 case dwarf::DW_EH_PE_sdata2: in getSizeForEncoding()
1265 case dwarf::DW_EH_PE_udata4: in getSizeForEncoding()
1266 case dwarf::DW_EH_PE_sdata4: in getSizeForEncoding()
1268 case dwarf::DW_EH_PE_udata8: in getSizeForEncoding()
1269 case dwarf::DW_EH_PE_sdata8: in getSizeForEncoding()
1340 Streamer.emitInt8(dwarf::DW_CFA_register); in emitCFIInstruction()
1346 Streamer.emitInt8(dwarf::DW_CFA_GNU_window_save); in emitCFIInstruction()
1350 Streamer.emitInt8(dwarf::DW_CFA_AARCH64_negate_ra_state); in emitCFIInstruction()
1355 Streamer.emitInt8(dwarf::DW_CFA_undefined); in emitCFIInstruction()
1364 Streamer.emitInt8(dwarf::DW_CFA_def_cfa_offset); in emitCFIInstruction()
1379 Streamer.emitInt8(dwarf::DW_CFA_def_cfa); in emitCFIInstruction()
1390 Streamer.emitInt8(dwarf::DW_CFA_def_cfa_register); in emitCFIInstruction()
1400 Streamer.emitIntValue(dwarf::DW_CFA_LLVM_def_aspace_cfa, 1); in emitCFIInstruction()
1423 Streamer.emitInt8(dwarf::DW_CFA_offset_extended_sf); in emitCFIInstruction()
1427 Streamer.emitInt8(dwarf::DW_CFA_offset + Reg); in emitCFIInstruction()
1430 Streamer.emitInt8(dwarf::DW_CFA_offset_extended); in emitCFIInstruction()
1437 Streamer.emitInt8(dwarf::DW_CFA_remember_state); in emitCFIInstruction()
1440 Streamer.emitInt8(dwarf::DW_CFA_restore_state); in emitCFIInstruction()
1444 Streamer.emitInt8(dwarf::DW_CFA_same_value); in emitCFIInstruction()
1453 Streamer.emitInt8(dwarf::DW_CFA_restore | Reg); in emitCFIInstruction()
1455 Streamer.emitInt8(dwarf::DW_CFA_restore_extended); in emitCFIInstruction()
1461 Streamer.emitInt8(dwarf::DW_CFA_GNU_args_size); in emitCFIInstruction()
1542 Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_udata4); in EmitCompactUnwind()
1546 Size = getSizeForEncoding(Streamer, dwarf::DW_EH_PE_absptr); in EmitCompactUnwind()
1585 dwarf::DwarfFormat Format = IsEH ? dwarf::DWARF32 : context.getDwarfFormat(); in EmitCIE()
1586 unsigned UnitLengthBytes = dwarf::getUnitLengthFieldByteSize(Format); in EmitCIE()
1587 unsigned OffsetSize = dwarf::getDwarfOffsetByteSize(Format); in EmitCIE()
1588 bool IsDwarf64 = Format == dwarf::DWARF64; in EmitCIE()
1592 Streamer.emitInt32(dwarf::DW_LENGTH_DWARF64); in EmitCIE()
1601 IsEH ? 0 : (IsDwarf64 ? dwarf::DW64_CIE_ID : dwarf::DW_CIE_ID); in EmitCIE()
1714 dwarf::DwarfFormat Format = IsEH ? dwarf::DWARF32 : context.getDwarfFormat(); in EmitFDE()
1715 unsigned OffsetSize = dwarf::getDwarfOffsetByteSize(Format); in EmitFDE()
1717 if (Format == dwarf::DWARF64) in EmitFDE()
1719 Streamer.emitInt32(dwarf::DW_LENGTH_DWARF64); in EmitFDE()
1744 IsEH ? MOFI->getFDEEncoding() : (unsigned)dwarf::DW_EH_PE_absptr; in EmitFDE()
1920 uint8_t Opcode = dwarf::DW_CFA_advance_loc | AddrDelta; in encodeAdvanceLoc()
1923 Out.push_back(dwarf::DW_CFA_advance_loc1); in encodeAdvanceLoc()
1926 Out.push_back(dwarf::DW_CFA_advance_loc2); in encodeAdvanceLoc()
1930 Out.push_back(dwarf::DW_CFA_advance_loc4); in encodeAdvanceLoc()