Adrian Prantl | b560ea7 | 2017-04-18 01:21:53 +0000 | [diff] [blame] | 1 | ; RUN: llvm-dis -o - %s.bc | FileCheck %s |
| 2 | %class.A = type { i32, i32, i32, i32 } |
| 3 | |
| 4 | define void @_Z3fooi(%class.A* sret %agg.result) #0 !dbg !3 { |
Reid Kleckner | a5b2af0 | 2017-08-23 20:31:27 +0000 | [diff] [blame] | 5 | ; CHECK: call void @llvm.dbg.declare({{.*}}, metadata !DIExpression()), !dbg |
Adrian Prantl | b560ea7 | 2017-04-18 01:21:53 +0000 | [diff] [blame] | 6 | call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !13, metadata !16), !dbg !17 |
| 7 | ret void, !dbg !17 |
| 8 | } |
| 9 | |
| 10 | declare void @llvm.dbg.declare(metadata, metadata, metadata) #1 |
| 11 | |
| 12 | attributes #0 = { ssp } |
| 13 | attributes #1 = { nounwind readnone } |
| 14 | |
| 15 | !llvm.dbg.cu = !{!0} |
| 16 | !llvm.module.flags = !{!2} |
| 17 | |
| 18 | !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug) |
| 19 | !1 = !DIFile(filename: "a.cc", directory: "/tmp") |
| 20 | !2 = !{i32 1, !"Debug Info Version", i32 3} |
| 21 | !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) |
| 22 | !4 = !DISubroutineType(types: !5) |
| 23 | !5 = !{!6} |
| 24 | !6 = !DICompositeType(tag: DW_TAG_class_type, name: "A", scope: !0, file: !1, line: 2, size: 128, align: 32, elements: !7) |
| 25 | !7 = !{!8, !10, !11, !12} |
| 26 | !8 = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32) |
| 27 | !9 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) |
| 28 | !10 = !DIDerivedType(tag: DW_TAG_member, name: "y", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 32) |
| 29 | !11 = !DIDerivedType(tag: DW_TAG_member, name: "z", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 64) |
| 30 | !12 = !DIDerivedType(tag: DW_TAG_member, name: "o", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 96) |
| 31 | !13 = !DILocalVariable(name: "my_a", scope: !14, file: !1, line: 9, type: !15) |
| 32 | !14 = distinct !DILexicalBlock(scope: !3, file: !1, line: 4, column: 14) |
| 33 | !15 = !DIDerivedType(tag: DW_TAG_reference_type, file: !1, baseType: !6) |
| 34 | !16 = !DIExpression(DW_OP_deref) |
| 35 | !17 = !DILocation(line: 9, column: 5, scope: !3) |