forked from OSchip/llvm-project
Rename DWARF 5 constants to adapt to change in LLVM
llvm-svn: 285424
This commit is contained in:
parent
de8c1b3433
commit
1c0bf1baca
|
@ -82,15 +82,15 @@ void DWARFDebugMacroEntry::ReadMacroEntries(
|
|||
debug_macros_sp->AddMacroEntry(
|
||||
DebugMacroEntry::CreateUndefEntry(line, macro_str));
|
||||
break;
|
||||
case DW_MACRO_define_indirect:
|
||||
case DW_MACRO_undef_indirect:
|
||||
case DW_MACRO_define_strp:
|
||||
case DW_MACRO_undef_strp:
|
||||
line = debug_macro_data.GetULEB128(offset);
|
||||
if (offset_is_64_bit)
|
||||
str_offset = debug_macro_data.GetU64(offset);
|
||||
else
|
||||
str_offset = debug_macro_data.GetU32(offset);
|
||||
macro_str = debug_str_data.GetCStr(&str_offset);
|
||||
if (type == DW_MACRO_define_indirect)
|
||||
if (type == DW_MACRO_define_strp)
|
||||
debug_macros_sp->AddMacroEntry(
|
||||
DebugMacroEntry::CreateDefineEntry(line, macro_str));
|
||||
else
|
||||
|
@ -107,7 +107,7 @@ void DWARFDebugMacroEntry::ReadMacroEntries(
|
|||
// This operation has no operands.
|
||||
debug_macros_sp->AddMacroEntry(DebugMacroEntry::CreateEndFileEntry());
|
||||
break;
|
||||
case DW_MACRO_transparent_include:
|
||||
case DW_MACRO_import:
|
||||
if (offset_is_64_bit)
|
||||
new_offset = debug_macro_data.GetU64(offset);
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue