14
14
; RUN: llvm-dis < %t.out.2.3.import.bc | FileCheck %s
15
15
16
16
; CHECK: distinct !DICompositeType(tag: DW_TAG_enumeration_type, name: "enum", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 50, size: 32, flags: DIFlagFwdDecl, identifier: "enum")
17
- ; CHECK: distinct !DICompositeType(tag: DW_TAG_class_type, name: "class", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 728, size: 448, flags: DIFlagFwdDecl, identifier: "class")
18
- ; CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, size: 128, flags: DIFlagFwdDecl, identifier: "list ")
17
+ ; CHECK: distinct !DICompositeType(tag: DW_TAG_class_type, name: "class<> ", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 728, size: 448, flags: DIFlagFwdDecl, identifier: "class")
18
+ ; CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, size: 128, flags: DIFlagFwdDecl, templateParams: !{{[0-9]+}}, identifier: "struct_templ_simplified ")
19
19
; CHECK: distinct !DICompositeType(tag: DW_TAG_union_type, file: !{{[0-9]+}}, line: 115, size: 384, flags: DIFlagFwdDecl, identifier: "union")
20
+ ; CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct<>", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, size: 128, flags: DIFlagFwdDecl, identifier: "struct_templ")
21
+ ; CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "_STNstruct|<>", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, size: 128, flags: DIFlagFwdDecl, templateParams: !{{[0-9]+}}, identifier: "struct_templ_simplified_mangled")
20
22
21
23
; Ensure that full type definitions of composite types are imported if requested
22
24
; RUN: llvm-lto -import-full-type-definitions -thinlto-action=import %t2.bc -thinlto-index=%t.index.bc -o - | llvm-dis -o - | FileCheck %s --check-prefix=FULL
28
30
; RUN: llvm-dis < %t.out.2.3.import.bc | FileCheck %s --check-prefix=FULL
29
31
30
32
; FULL: distinct !DICompositeType(tag: DW_TAG_enumeration_type, name: "enum", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 50, size: 32, elements: !{{[0-9]+}}, identifier: "enum")
31
- ; FULL: distinct !DICompositeType(tag: DW_TAG_class_type, name: "class", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 728, size: 448, elements: !{{[0-9]+}}, identifier: "class")
32
- ; FULL: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, baseType: !{{[0-9]+}}, size: 128, offset: 64, elements: !{{[0-9]+}}, vtableHolder: !{{[0-9]+}}, templateParams: !{{[0-9]+}}, identifier: "list ")
33
+ ; FULL: distinct !DICompositeType(tag: DW_TAG_class_type, name: "class<> ", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 728, size: 448, elements: !{{[0-9]+}}, identifier: "class")
34
+ ; FULL: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, baseType: !{{[0-9]+}}, size: 128, offset: 64, elements: !{{[0-9]+}}, vtableHolder: !{{[0-9]+}}, templateParams: !{{[0-9]+}}, identifier: "struct_templ_simplified ")
33
35
; FULL: distinct !DICompositeType(tag: DW_TAG_union_type, file: !{{[0-9]+}}, line: 115, size: 384, elements: !{{[0-9]+}}, identifier: "union")
36
+ ; FULL: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "struct<>", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, baseType: !{{[0-9]+}}, size: 128, offset: 64, elements: !{{[0-9]+}}, vtableHolder: !{{[0-9]+}}, templateParams: !{{[0-9]+}}, identifier: "struct_templ")
37
+ ; FULL: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "_STNstruct|<>", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, line: 309, baseType: !{{[0-9]+}}, size: 128, offset: 64, elements: !{{[0-9]+}}, vtableHolder: !{{[0-9]+}}, templateParams: !{{[0-9]+}}, identifier: "struct_templ_simplified_mangled")
34
38
35
39
; ModuleID = 'debuginfo-compositetype-import.c'
36
40
source_filename = "debuginfo-compositetype-import.c"
@@ -55,8 +59,10 @@ entry:
55
59
!5 = !{}
56
60
!6 = distinct !DISubprogram (name: "foo" , scope: !1 , file: !1 , line: 1 , type: !7 , isLocal: false , isDefinition: true , scopeLine: 2 , isOptimized: false , unit: !0 , retainedNodes: !5 )
57
61
!7 = !DISubroutineType (types: !8 )
58
- !8 = !{!9 , !10 , !11 , !12 }
62
+ !8 = !{!9 , !10 , !11 , !12 , !13 , !14 }
59
63
!9 = !DICompositeType (tag: DW_TAG_enumeration_type, name: "enum" , scope: !1 , file: !1 , line: 50 , size: 32 , elements: !5 , identifier: "enum" )
60
- !10 = !DICompositeType (tag: DW_TAG_class_type, name: "class" , scope: !1 , file: !1 , line: 728 , size: 448 , elements: !5 , identifier: "class" )
61
- !11 = distinct !DICompositeType (tag: DW_TAG_structure_type, name: "struct" , scope: !1 , file: !1 , line: 309 , baseType: !10 , size: 128 , offset: 64 , elements: !5 , vtableHolder: !10 , templateParams: !5 , identifier: "list " )
64
+ !10 = !DICompositeType (tag: DW_TAG_class_type, name: "class<> " , scope: !1 , file: !1 , line: 728 , size: 448 , elements: !5 , identifier: "class" )
65
+ !11 = distinct !DICompositeType (tag: DW_TAG_structure_type, name: "struct" , scope: !1 , file: !1 , line: 309 , baseType: !10 , size: 128 , offset: 64 , elements: !5 , vtableHolder: !10 , templateParams: !5 , identifier: "struct_templ_simplified " )
62
66
!12 = distinct !DICompositeType (tag: DW_TAG_union_type, file: !1 , line: 115 , size: 384 , elements: !5 , identifier: "union" )
67
+ !13 = distinct !DICompositeType (tag: DW_TAG_structure_type, name: "struct<>" , scope: !1 , file: !1 , line: 309 , baseType: !10 , size: 128 , offset: 64 , elements: !5 , vtableHolder: !10 , templateParams: !5 , identifier: "struct_templ" )
68
+ !14 = distinct !DICompositeType (tag: DW_TAG_structure_type, name: "_STNstruct|<>" , scope: !1 , file: !1 , line: 309 , baseType: !10 , size: 128 , offset: 64 , elements: !5 , vtableHolder: !10 , templateParams: !5 , identifier: "struct_templ_simplified_mangled" )
0 commit comments