1*1c456a82SNikita Popov; RUN: llvm-dis -opaque-pointers=0 -o - %s.bc | FileCheck %s 2*1c456a82SNikita Popov; RUN: llvm-dis -opaque-pointers=1 -o - %s.bc | FileCheck %s 36825fb64SAdrian Prantl%class.A = type { i32, i32, i32, i32 } 46825fb64SAdrian Prantl 520c43d6bSMatt Arsenaultdefine void @_Z3fooi(%class.A* sret(%class.A) %agg.result) #0 !dbg !3 { 66d353348SReid Kleckner ; CHECK: call void @llvm.dbg.declare({{.*}}, metadata !DIExpression()), !dbg 76825fb64SAdrian Prantl call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !13, metadata !16), !dbg !17 86825fb64SAdrian Prantl ret void, !dbg !17 96825fb64SAdrian Prantl} 106825fb64SAdrian Prantl 116825fb64SAdrian Prantldeclare void @llvm.dbg.declare(metadata, metadata, metadata) #1 126825fb64SAdrian Prantl 136825fb64SAdrian Prantlattributes #0 = { ssp } 146825fb64SAdrian Prantlattributes #1 = { nounwind readnone } 156825fb64SAdrian Prantl 166825fb64SAdrian Prantl!llvm.dbg.cu = !{!0} 176825fb64SAdrian Prantl!llvm.module.flags = !{!2} 186825fb64SAdrian Prantl 196825fb64SAdrian Prantl!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug) 206825fb64SAdrian Prantl!1 = !DIFile(filename: "a.cc", directory: "/tmp") 216825fb64SAdrian Prantl!2 = !{i32 1, !"Debug Info Version", i32 3} 226825fb64SAdrian Prantl!3 = distinct !DISubprogram(name: "foo", linkageName: "_Z3fooi", scope: !1, file: !1, line: 4, type: !4, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0) 236825fb64SAdrian Prantl!4 = !DISubroutineType(types: !5) 246825fb64SAdrian Prantl!5 = !{!6} 256825fb64SAdrian Prantl!6 = !DICompositeType(tag: DW_TAG_class_type, name: "A", scope: !0, file: !1, line: 2, size: 128, align: 32, elements: !7) 266825fb64SAdrian Prantl!7 = !{!8, !10, !11, !12} 276825fb64SAdrian Prantl!8 = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32) 286825fb64SAdrian Prantl!9 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 296825fb64SAdrian Prantl!10 = !DIDerivedType(tag: DW_TAG_member, name: "y", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 32) 306825fb64SAdrian Prantl!11 = !DIDerivedType(tag: DW_TAG_member, name: "z", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 64) 316825fb64SAdrian Prantl!12 = !DIDerivedType(tag: DW_TAG_member, name: "o", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 96) 326825fb64SAdrian Prantl!13 = !DILocalVariable(name: "my_a", scope: !14, file: !1, line: 9, type: !15) 336825fb64SAdrian Prantl!14 = distinct !DILexicalBlock(scope: !3, file: !1, line: 4, column: 14) 346825fb64SAdrian Prantl!15 = !DIDerivedType(tag: DW_TAG_reference_type, file: !1, baseType: !6) 356825fb64SAdrian Prantl!16 = !DIExpression(DW_OP_deref) 366825fb64SAdrian Prantl!17 = !DILocation(line: 9, column: 5, scope: !3) 37