diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Support/Dwarf.cpp | 23 |
5 files changed, 26 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 52dd36273e3..d4cc3f199bf 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1523,14 +1523,14 @@ void DwarfDebug::emitDebugLocDWO() { // rather than two. We could get fancier and try to, say, reuse an // address we know we've emitted elsewhere (the start of the function? // The start of the CU or CU subrange that encloses this range?) - Asm->EmitInt8(dwarf::DW_LLE_start_length_entry); + Asm->EmitInt8(dwarf::DW_LLE_startx_length); unsigned idx = AddrPool.getIndex(Entry.BeginSym); Asm->EmitULEB128(idx); Asm->EmitLabelDifference(Entry.EndSym, Entry.BeginSym, 4); emitDebugLocEntryLocation(Entry); } - Asm->EmitInt8(dwarf::DW_LLE_end_of_list_entry); + Asm->EmitInt8(dwarf::DW_LLE_end_of_list); } } diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp index e4577dc12c2..880fc5c3fa2 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp @@ -312,7 +312,7 @@ uint64_t DWARFDebugInfoEntryMinimal::getRangesBaseAttribute(const DWARFUnit *U, uint64_t FailValue) const { uint64_t Result = - getAttributeValueAsSectionOffset(U, DW_AT_ranges_base, -1ULL); + getAttributeValueAsSectionOffset(U, DW_AT_rnglists_base, -1ULL); if (Result != -1ULL) return Result; return getAttributeValueAsSectionOffset(U, DW_AT_GNU_ranges_base, FailValue); diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp index a7b46b842fe..ae5b9d70a2e 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp @@ -82,9 +82,9 @@ void DWARFDebugLocDWO::parse(DataExtractor data) { Loc.Offset = Offset; dwarf::LocationListEntry Kind; while ((Kind = static_cast<dwarf::LocationListEntry>( - data.getU8(&Offset))) != dwarf::DW_LLE_end_of_list_entry) { + data.getU8(&Offset))) != dwarf::DW_LLE_end_of_list) { - if (Kind != dwarf::DW_LLE_start_length_entry) { + if (Kind != dwarf::DW_LLE_startx_length) { llvm::errs() << "error: dumping support for LLE of kind " << (int)Kind << " not implemented\n"; return; diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp index 13c2b508bfa..7fb59983dc5 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp @@ -257,7 +257,7 @@ size_t DWARFUnit::extractDIEsIfNeeded(bool CUDieOnly) { AddrOffsetSectionBase = DieArray[0].getAttributeValueAsSectionOffset( this, DW_AT_GNU_addr_base, 0); RangeSectionBase = DieArray[0].getAttributeValueAsSectionOffset( - this, DW_AT_ranges_base, 0); + this, DW_AT_rnglists_base, 0); // Don't fall back to DW_AT_GNU_ranges_base: it should be ignored for // skeleton CU DIE, so that DWARF users not aware of it are not broken. } diff --git a/llvm/lib/Support/Dwarf.cpp b/llvm/lib/Support/Dwarf.cpp index b0b2f0ad0eb..06c6049564d 100644 --- a/llvm/lib/Support/Dwarf.cpp +++ b/llvm/lib/Support/Dwarf.cpp @@ -143,14 +143,31 @@ StringRef llvm::dwarf::AttributeString(unsigned Attribute) { case DW_AT_rank: return "DW_AT_rank"; case DW_AT_str_offsets_base: return "DW_AT_str_offsets_base"; case DW_AT_addr_base: return "DW_AT_addr_base"; - case DW_AT_ranges_base: return "DW_AT_ranges_base"; + case DW_AT_rnglists_base: return "DW_AT_rnglists_base"; case DW_AT_dwo_id: return "DW_AT_dwo_id"; case DW_AT_dwo_name: return "DW_AT_dwo_name"; case DW_AT_reference: return "DW_AT_reference"; case DW_AT_rvalue_reference: return "DW_AT_rvalue_reference"; + case DW_AT_macros: return "DW_AT_macros"; + case DW_AT_call_all_calls: return "DW_AT_call_all_calls"; + case DW_AT_call_all_source_calls: return "DW_AT_call_all_source_calls"; + case DW_AT_call_all_tail_calls: return "DW_AT_call_all_tail_calls"; + case DW_AT_call_return_pc: return "DW_AT_call_return_pc"; + case DW_AT_call_value: return "DW_AT_call_value"; + case DW_AT_call_origin: return "DW_AT_call_origin"; + case DW_AT_call_parameter: return "DW_AT_call_parameter"; + case DW_AT_call_pc: return "DW_AT_call_pc"; + case DW_AT_call_tail_call: return "DW_AT_call_tail_call"; + case DW_AT_call_target: return "DW_AT_call_target"; + case DW_AT_call_target_clobbered: return "DW_AT_call_target_clobbered"; + case DW_AT_call_data_location: return "DW_AT_call_data_location"; + case DW_AT_call_data_value: return "DW_AT_call_data_value"; case DW_AT_noreturn: return "DW_AT_noreturn"; - case DW_AT_alignment: - return "DW_AT_alignment"; + case DW_AT_alignment: return "DW_AT_alignment"; + case DW_AT_export_symbols: return "DW_AT_export_symbols"; + case DW_AT_deleted: return "DW_AT_deleted"; + case DW_AT_defaulted: return "DW_AT_defaulted"; + case DW_AT_loclists_base: return "DW_AT_loclists_base"; case DW_AT_MIPS_loop_begin: return "DW_AT_MIPS_loop_begin"; case DW_AT_MIPS_tail_loop_begin: return "DW_AT_MIPS_tail_loop_begin"; case DW_AT_MIPS_epilog_begin: return "DW_AT_MIPS_epilog_begin"; |