|
| 1 | +source_filename = "DW_AT_GNU_template_name.cpp" |
| 2 | +target triple = "x86_64-pc-linux-gnu" |
| 3 | + |
| 4 | +%class.Baz = type { %class.Bar } |
| 5 | +%class.Bar = type { %class.Foo } |
| 6 | +%class.Foo = type { i32 } |
| 7 | + |
| 8 | +@TT = dso_local global %class.Baz zeroinitializer, align 4, !dbg !0 |
| 9 | + |
| 10 | +!llvm.dbg.cu = !{!2} |
| 11 | +!llvm.module.flags = !{!22, !23} |
| 12 | + |
| 13 | +!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
| 14 | +!1 = distinct !DIGlobalVariable(name: "TT", scope: !2, file: !3, line: 18, type: !5, isLocal: false, isDefinition: true) |
| 15 | +!2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !3, emissionKind: FullDebug, globals: !4) |
| 16 | +!3 = !DIFile(filename: "DW_AT_GNU_template_name.cpp", directory: "") |
| 17 | +!4 = !{!0} |
| 18 | +!5 = !DIDerivedType(tag: DW_TAG_typedef, name: "Example", file: !3, line: 16, baseType: !6) |
| 19 | +!6 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "Baz<Bar>", file: !3, line: 12, size: 32, flags: DIFlagTypePassByValue, elements: !7, templateParams: !20, identifier: "_ZTS3BazI3BarE") |
| 20 | +!7 = !{!8} |
| 21 | +!8 = !DIDerivedType(tag: DW_TAG_member, name: "Foo", scope: !6, file: !3, line: 13, baseType: !9, size: 32) |
| 22 | +!9 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "Bar<Foo>", file: !3, line: 7, size: 32, flags: DIFlagTypePassByValue, elements: !10, templateParams: !18, identifier: "_ZTS3BarI3FooE") |
| 23 | +!10 = !{!11} |
| 24 | +!11 = !DIDerivedType(tag: DW_TAG_member, name: "Int", scope: !9, file: !3, line: 8, baseType: !12, size: 32) |
| 25 | +!12 = distinct !DICompositeType(tag: DW_TAG_class_type, name: "Foo<int>", file: !3, line: 3, size: 32, flags: DIFlagTypePassByValue, elements: !13, templateParams: !16, identifier: "_ZTS3FooIiE") |
| 26 | +!13 = !{!14} |
| 27 | +!14 = !DIDerivedType(tag: DW_TAG_member, name: "Member", scope: !12, file: !3, line: 3, baseType: !15, size: 32) |
| 28 | +!15 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) |
| 29 | +!16 = !{!17} |
| 30 | +!17 = !DITemplateTypeParameter(name: "T", type: !15) |
| 31 | +!18 = !{!19} |
| 32 | +!19 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "TemplateType", value: !"Foo") |
| 33 | +!20 = !{!21} |
| 34 | +!21 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "TemplateTemplateType", value: !"Bar") |
| 35 | +!22 = !{i32 7, !"Dwarf Version", i32 5} |
| 36 | +!23 = !{i32 2, !"Debug Info Version", i32 3} |
0 commit comments