add240389c9ea521da317b7a08d6f27d45e7dd92
[oota-llvm.git] / test / tools / dsymutil / Inputs / odr7.ll
1 ; Generated from odr7.cpp and odr-types.h by running:
2 ; clang -emit-llvm -g -S -std=c++11 odr7.cpp
3 ; ModuleID = 'odr7.cpp'
4 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-apple-macosx10.11.0"
6
7 %"struct.S::Nested" = type { double }
8
9 ; Function Attrs: nounwind ssp uwtable
10 define void @_Z3foov() #0 {
11 entry:
12   %N = alloca %"struct.S::Nested", align 8
13   call void @llvm.dbg.declare(metadata %"struct.S::Nested"* %N, metadata !32, metadata !33), !dbg !34
14   ret void, !dbg !35
15 }
16
17 ; Function Attrs: nounwind readnone
18 declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
19
20 attributes #0 = { nounwind ssp uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="core2" "target-features"="+cx16,+sse,+sse2,+sse3,+ssse3" "unsafe-fp-math"="false" "use-soft-float"="false" }
21 attributes #1 = { nounwind readnone }
22
23 !llvm.dbg.cu = !{!0}
24 !llvm.module.flags = !{!28, !29, !30}
25 !llvm.ident = !{!31}
26
27 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 242534)", isOptimized: false, runtimeVersion: 0, emissionKind: 1, enums: !2, retainedTypes: !3, subprograms: !24)
28 !1 = !DIFile(filename: "odr7.cpp", directory: "/Inputs")
29 !2 = !{}
30 !3 = !{!4, !20}
31 !4 = !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !5, line: 1, size: 128, align: 64, elements: !6, identifier: "_ZTS1S")
32 !5 = !DIFile(filename: "./odr-types.h", directory: "/Inputs")
33 !6 = !{!7, !9, !10, !14, !17}
34 !7 = !DIDerivedType(tag: DW_TAG_member, name: "I", scope: !"_ZTS1S", file: !5, line: 2, baseType: !8, size: 32, align: 32)
35 !8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
36 !9 = !DIDerivedType(tag: DW_TAG_member, name: "D", scope: !"_ZTS1S", file: !5, line: 15, baseType: !"_ZTSN1S6NestedE", size: 64, align: 64, offset: 64)
37 !10 = !DISubprogram(name: "incr", linkageName: "_ZN1S4incrEv", scope: !"_ZTS1S", file: !5, line: 4, type: !11, isLocal: false, isDefinition: false, scopeLine: 4, flags: DIFlagPrototyped, isOptimized: false)
38 !11 = !DISubroutineType(types: !12)
39 !12 = !{null, !13}
40 !13 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !"_ZTS1S", size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)
41 !14 = !DISubprogram(name: "incr", linkageName: "_ZN1S4incrEi", scope: !"_ZTS1S", file: !5, line: 5, type: !15, isLocal: false, isDefinition: false, scopeLine: 5, flags: DIFlagPrototyped, isOptimized: false)
42 !15 = !DISubroutineType(types: !16)
43 !16 = !{null, !13, !8}
44 !17 = !DISubprogram(name: "foo", linkageName: "_ZN1S3fooEv", scope: !"_ZTS1S", file: !5, line: 18, type: !18, isLocal: false, isDefinition: false, scopeLine: 18, flags: DIFlagPrototyped, isOptimized: false)
45 !18 = !DISubroutineType(types: !19)
46 !19 = !{!8, !13}
47 !20 = !DICompositeType(tag: DW_TAG_structure_type, name: "Nested", scope: !"_ZTS1S", file: !5, line: 9, size: 64, align: 64, elements: !21, identifier: "_ZTSN1S6NestedE")
48 !21 = !{!22}
49 !22 = !DIDerivedType(tag: DW_TAG_member, name: "D", scope: !"_ZTSN1S6NestedE", file: !5, line: 10, baseType: !23, size: 64, align: 64)
50 !23 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
51 !24 = !{!25}
52 !25 = !DISubprogram(name: "foo", linkageName: "_Z3foov", scope: !1, file: !1, line: 3, type: !26, isLocal: false, isDefinition: true, scopeLine: 3, flags: DIFlagPrototyped, isOptimized: false, function: void ()* @_Z3foov, variables: !2)
53 !26 = !DISubroutineType(types: !27)
54 !27 = !{null}
55 !28 = !{i32 2, !"Dwarf Version", i32 2}
56 !29 = !{i32 2, !"Debug Info Version", i32 3}
57 !30 = !{i32 1, !"PIC Level", i32 2}
58 !31 = !{!"clang version 3.8.0 (trunk 242534)"}
59 !32 = !DILocalVariable(name: "N", scope: !25, file: !1, line: 4, type: !"_ZTSN1S6NestedE")
60 !33 = !DIExpression()
61 !34 = !DILocation(line: 4, column: 12, scope: !25)
62 !35 = !DILocation(line: 5, column: 1, scope: !25)