mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Only emit DW_AT_object_pointer if this is a definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164326 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
554da1a222
commit
d57ae39a88
@ -1109,9 +1109,6 @@ DIE *CompileUnit::getOrCreateSubprogramDIE(DISubprogram SP) {
|
||||
addType(Arg, ATy);
|
||||
if (ATy.isArtificial())
|
||||
addFlag(Arg, dwarf::DW_AT_artificial);
|
||||
if (ATy.isObjectPointer())
|
||||
addDIEEntry(SPDie, dwarf::DW_AT_object_pointer, dwarf::DW_FORM_ref4,
|
||||
Arg);
|
||||
SPDie->addChild(Arg);
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
; RUN: llc -mtriple=x86_64-apple-darwin %s -o %t -filetype=obj
|
||||
; RUN: llvm-dwarfdump %t | FileCheck %s
|
||||
|
||||
; CHECK: DW_AT_object_pointer [DW_FORM_ref4] (cu + 0x00c3 => {0x000000c3})
|
||||
; CHECK: 0x000000c3: DW_TAG_formal_parameter [12]
|
||||
; CHECK: DW_AT_object_pointer [DW_FORM_ref4] (cu + 0x00bf => {0x000000bf})
|
||||
; CHECK: 0x000000bf: DW_TAG_formal_parameter [12]
|
||||
; CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000085] = "this")
|
||||
|
||||
%class.A = type { i32 }
|
||||
|
Loading…
x
Reference in New Issue
Block a user