mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Debug Info: revert 178722 for now.
There is a difference for FORM_ref_addr between DWARF 2 and DWARF 3+. Since Eric is against guarding DWARF 2 ref_addr with DarwinGDBCompat, we are still in discussion on how to handle this. The correct solution is to update our header to say version 4 instead of version 2 and update tool chains as well. rdar://problem/13559431 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178806 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1791,14 +1791,7 @@ void DwarfDebug::emitDIE(DIE *Die, std::vector<DIEAbbrev *> *Abbrevs) {
|
||||
DwarfUnits &Holder = useSplitDwarf() ? SkeletonHolder : InfoHolder;
|
||||
Addr += Holder.getCUOffset(Origin->getCompileUnit());
|
||||
}
|
||||
// DWARF4: References that use the attribute form DW_FORM_ref_addr are
|
||||
// specified to be four bytes in the DWARF 32-bit format and eight bytes
|
||||
// in the DWARF 64-bit format, while DWARF Version 2 specifies that such
|
||||
// references have the same size as an address on the target system.
|
||||
// Our current version is version 2.
|
||||
Asm->OutStreamer.EmitIntValue(Addr,
|
||||
Form == dwarf::DW_FORM_ref_addr ?
|
||||
Asm->getDataLayout().getPointerSize() : 4);
|
||||
Asm->EmitInt32(Addr);
|
||||
break;
|
||||
}
|
||||
case dwarf::DW_AT_ranges: {
|
||||
|
Reference in New Issue
Block a user