mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
The debugger sometimes lookup dynamically in the runtime to find ivar info of any Objective-C classes. It would be very helpful to debugger if the compiler encodes runtime version number in DWARF.
Add support for two additional DWARF attributes to encode Objective-C runtime version number. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1770,6 +1770,9 @@ private:
|
||||
DIDerivedType(Element.getGV()));
|
||||
Buffer.AddChild(ElemDie);
|
||||
}
|
||||
unsigned RLang = CTy.getRunTimeLang();
|
||||
if (RLang)
|
||||
AddUInt(&Buffer, DW_AT_APPLE_runtime_class, DW_FORM_data1, RLang);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
@ -2800,6 +2803,9 @@ private:
|
||||
const std::string &Flags = DIUnit.getFlags();
|
||||
if (!Flags.empty())
|
||||
AddString(Die, DW_AT_APPLE_flags, DW_FORM_string, Flags);
|
||||
unsigned RVer = DIUnit.getRunTimeVersion();
|
||||
if (RVer)
|
||||
AddUInt(Die, DW_AT_APPLE_major_runtime_vers, DW_FORM_data1, RVer);
|
||||
|
||||
CompileUnit *Unit = new CompileUnit(ID, Die);
|
||||
if (DIUnit.isMain()) {
|
||||
|
Reference in New Issue
Block a user