mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Add some support for dealing with an object pointer on arguments.
Part of rdar://9797999 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163667 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1109,6 +1109,8 @@ DIE *CompileUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
addType(Arg, ATy);
|
||||
if (ATy.isArtificial())
|
||||
addFlag(Arg, dwarf::DW_AT_artificial);
|
||||
if (ATy.isObjectPointer())
|
||||
addFlag(Arg, dwarf::DW_AT_object_pointer);
|
||||
SPDie->addChild(Arg);
|
||||
}
|
||||
}
|
||||
@ -1348,6 +1350,8 @@ DIE *CompileUnit::constructVariableDIE(DbgVariable *DV, bool isScopeAbstract) {
|
||||
|
||||
if (DV->isArtificial())
|
||||
addFlag(VariableDie, dwarf::DW_AT_artificial);
|
||||
if (DV->isObjectPointer())
|
||||
addFlag(VariableDie, dwarf::DW_AT_object_pointer);
|
||||
|
||||
if (isScopeAbstract) {
|
||||
DV->setDIE(VariableDie);
|
||||
|
Reference in New Issue
Block a user