3 %class.B = type { i32, ptr }
4 %class.A = type { %class.Base, i32 }
5 %class.Base = type { i32 }
7 ; Function Attrs: nounwind ssp uwtable
8 define void @_Z1gi(i32 %a) #0 !dbg !20 {
10 %a.addr = alloca i32, align 4
11 %t = alloca %class.B, align 8
12 store i32 %a, ptr %a.addr, align 4
13 call void @llvm.dbg.declare(metadata ptr %a.addr, metadata !28, metadata !DIExpression()), !dbg !29
14 call void @llvm.dbg.declare(metadata ptr %t, metadata !30, metadata !DIExpression()), !dbg !31
18 ; Function Attrs: nounwind readnone
19 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
21 ; Function Attrs: ssp uwtable
22 define i32 @main() #2 !dbg !24 {
24 %retval = alloca i32, align 4
25 %a = alloca %class.A, align 4
26 store i32 0, ptr %retval
27 call void @llvm.dbg.declare(metadata ptr %a, metadata !33, metadata !DIExpression()), !dbg !34
28 call void @_Z1fi(i32 0), !dbg !35
29 call void @_Z1gi(i32 1), !dbg !36
33 declare void @_Z1fi(i32) #3
35 attributes #0 = { nounwind ssp uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
36 attributes #1 = { nounwind readnone }
37 attributes #2 = { ssp uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
38 attributes #3 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
41 !llvm.module.flags = !{!27, !38}
43 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.4", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !3, globals: !2, imports: !2)
44 !1 = !DIFile(filename: "bar.cpp", directory: "/Users/mren/c_testing/type_unique_air/inher")
47 !4 = !DICompositeType(tag: DW_TAG_class_type, name: "B", line: 7, size: 128, align: 64, file: !5, elements: !6, identifier: "_ZTS1B")
48 !5 = !DIFile(filename: "./b.hpp", directory: "/Users/mren/c_testing/type_unique_air/inher")
50 !7 = !DIDerivedType(tag: DW_TAG_member, name: "bb", line: 8, size: 32, align: 32, flags: DIFlagPrivate, file: !5, scope: !4, baseType: !8)
51 !8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
52 !9 = !DIDerivedType(tag: DW_TAG_member, name: "a", line: 9, size: 64, align: 64, offset: 64, flags: DIFlagPrivate, file: !5, scope: !4, baseType: !10)
53 !10 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, baseType: !11)
54 !11 = !DICompositeType(tag: DW_TAG_class_type, name: "A", line: 3, size: 64, align: 32, file: !12, elements: !13, identifier: "_ZTS1A")
55 !12 = !DIFile(filename: "./a.hpp", directory: "/Users/mren/c_testing/type_unique_air/inher")
57 !14 = !DIDerivedType(tag: DW_TAG_inheritance, flags: DIFlagPrivate, scope: !11, baseType: !15)
58 !15 = !DICompositeType(tag: DW_TAG_class_type, name: "Base", line: 3, size: 32, align: 32, file: !5, elements: !16, identifier: "_ZTS4Base")
60 !17 = !DIDerivedType(tag: DW_TAG_member, name: "b", line: 4, size: 32, align: 32, flags: DIFlagPrivate, file: !5, scope: !15, baseType: !8)
61 !18 = !DIDerivedType(tag: DW_TAG_member, name: "x", line: 4, size: 32, align: 32, offset: 32, flags: DIFlagPrivate, file: !12, scope: !11, baseType: !8)
62 !20 = distinct !DISubprogram(name: "g", linkageName: "_Z1gi", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 4, file: !1, scope: !21, type: !22, retainedNodes: !2)
63 !21 = !DIFile(filename: "bar.cpp", directory: "/Users/mren/c_testing/type_unique_air/inher")
64 !22 = !DISubroutineType(types: !23)
66 !24 = distinct !DISubprogram(name: "main", line: 9, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 9, file: !1, scope: !21, type: !25, retainedNodes: !2)
67 !25 = !DISubroutineType(types: !26)
69 !27 = !{i32 2, !"Dwarf Version", i32 2}
70 !28 = !DILocalVariable(name: "a", line: 4, arg: 1, scope: !20, file: !21, type: !8)
71 !29 = !DILocation(line: 4, scope: !20)
72 !30 = !DILocalVariable(name: "t", line: 5, scope: !20, file: !21, type: !4)
73 !31 = !DILocation(line: 5, scope: !20)
74 !32 = !DILocation(line: 6, scope: !20)
75 !33 = !DILocalVariable(name: "a", line: 10, scope: !24, file: !21, type: !11)
76 !34 = !DILocation(line: 10, scope: !24)
77 !35 = !DILocation(line: 11, scope: !24)
78 !36 = !DILocation(line: 12, scope: !24)
79 !37 = !DILocation(line: 13, scope: !24)
80 !38 = !{i32 1, !"Debug Info Version", i32 3}