llvm.org GIT mirror llvm / 08abc19
More upgrading of old- and very-old-style debug info in testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265953 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 4 years ago
23 changed file(s) with 30 addition(s) and 24 deletion(s). Raw diff Collapse all Expand all
2121
2222 declare i32 @foo(i32) ssp
2323
24 !llvm.dbg.cu = !{!0}
2425 !0 = !DILocation(line: 5, column: 2, scope: !1)
2526 !1 = distinct !DILexicalBlock(line: 1, column: 1, file: null, scope: !2)
2627 !2 = distinct !DISubprogram(name: "bar", linkageName: "bar", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !3)
4343
4444 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
4545
46 !llvm.dbg.lv.fn = !{!0, !8, !10, !12}
47 !llvm.dbg.gv = !{!14}
46 !llvm.dbg.cu = !{!3}
4847
4948 !0 = !DILocalVariable(name: "buf", line: 4, arg: 1, scope: !1, file: !2, type: !6)
5049 !1 = distinct !DISubprogram(name: "x0", linkageName: "x0", line: 5, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, file: !26, scope: null, type: !4)
5150 !2 = !DIFile(filename: "t.c", directory: "/private/tmp")
52 !3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang 2.0", isOptimized: true, file: !26)
51 !3 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang 2.0", isOptimized: true, file: !26, subprograms: !{!0, !8, !10, !12}, globals: !{!14})
5352 !4 = !DISubroutineType(types: !5)
5453 !5 = !{null}
5554 !6 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 32, align: 32, file: !26, scope: !2, baseType: !7)
7575
7676 declare void @llvm.stackrestore(i8*) nounwind
7777
78 !llvm.dbg.cu = !{!2}
7879 !0 = !DILocalVariable(name: "s1", line: 2, arg: 1, scope: !1, file: !2, type: !6)
7980 !1 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !2, type: !3)
8081 !2 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !17, enums: !18, retainedTypes: !18)
2121
2222 declare i32 @foo(i32) ssp
2323
24 !llvm.dbg.cu = !{!3}
2425 !0 = !DILocation(line: 5, column: 2, scope: !1)
2526 !1 = distinct !DILexicalBlock(line: 1, column: 1, file: null, scope: !2)
2627 !2 = distinct !DISubprogram(name: "bar", linkageName: "bar", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !3)
1717 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
1818 declare void @"tart.reflect.ComplexType.create->tart.core.Object"(%tart.reflect.ComplexType*) nounwind readnone
1919
20 !llvm.dbg.cu = !{!0}
2021 !0 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !15, enums: !16, retainedTypes: !16)
2122 !1 = !DIDerivedType(tag: DW_TAG_const_type, size: 192, align: 64, file: !15, scope: !0, baseType: !2)
2223 !2 = !DICompositeType(tag: DW_TAG_structure_type, name: "C", line: 1, size: 192, align: 64, file: !15, scope: !0, elements: !3)
0 ; RUN: llc -O0 -relocation-model pic < %s -o /dev/null
11 ; REQUIRES: default_triple
22 ; PR7545
3
34 @.str = private constant [4 x i8] c"one\00", align 1 ; <[4 x i8]*> [#uses=1]
45 @.str1 = private constant [4 x i8] c"two\00", align 1 ; <[5 x i8]*> [#uses=1]
56 @C.9.2167 = internal constant [2 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str1, i64 0, i64 0)]
7 !llvm.dbg.cu = !{!39}
68 !38 = !DIFile(filename: "pbmsrch.c", directory: "/Users/grawp/LLVM/test-suite/MultiSource/Benchmarks/MiBench/office-stringsearch")
79 !39 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build 9999)", isOptimized: true, emissionKind: FullDebug, file: !109, enums: !108, retainedTypes: !108)
810 !46 = !DIDerivedType(tag: DW_TAG_pointer_type, size: 64, align: 64, file: !109, baseType: !47)
2830 }
2931
3032 declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
31
88 ret void
99 }
1010
11 !llvm.dbg.cu = !{!3}
1112 !0 = !DILocalVariable(name: "sy", line: 890, arg: 1, scope: !1, file: !2, type: !7)
1213 !1 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 892, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, file: !8, scope: !3, type: !4)
1314 !2 = !DIFile(filename: "qpainter.h", directory: "QtGui")
104104
105105 declare void @_ZdlPv(i8*) nounwind
106106
107 !llvm.dbg.cu = !{!4}
107108 !0 = !DILocalVariable(name: "tst", line: 13, scope: !1, file: !4, type: !8)
108109 !1 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !2)
109110 !2 = distinct !DILexicalBlock(line: 0, column: 0, file: !44, scope: !3)
2525
2626 declare void @llvm.dbg.region.end(metadata) nounwind readnone
2727
28 !llvm.dbg.cu = !{!1}
29
2830 !0 = distinct !DISubprogram(name: "main", linkageName: "main", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !1)
2931 !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "ellcc 0.1.0", isOptimized: true, emissionKind: FullDebug, file: !2)
3032 !2 = !DIFile(filename: "a.c", directory: "/home/rich/ellcc/test/source")
2020
2121 declare void @llvm.dbg.region.end(metadata) nounwind readnone
2222
23 !llvm.dbg.cu = !{!1}
24
2325 !0 = distinct !DISubprogram(name: "f", linkageName: "f", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !1)
2426 !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "ellcc 0.1.0", isOptimized: true, emissionKind: FullDebug, file: !2)
2527 !2 = !DIFile(filename: "b.c", directory: "/home/rich/ellcc/test/source")
5252
5353 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
5454
55 !llvm.dbg.gv = !{!0}
56
55 !llvm.dbg.cu = !{!1}
5756 !0 = !DIGlobalVariable(name: "Stop", line: 2, isLocal: true, isDefinition: true, scope: !1, file: !1, type: !2, variable: i32* @Stop)
58 !1 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !20, enums: !21, retainedTypes: !21)
57 !1 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", isOptimized: true, emissionKind: FullDebug, file: !20, enums: !21, retainedTypes: !21, globals: !{!0})
5958 !2 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
6059 !3 = !DILocalVariable(name: "i", line: 4, arg: 1, scope: !4, file: !1, type: !2)
6160 !4 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 4, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: false, scope: !1, type: !5)
156156 !llvm.module.flags = !{!13, !14}
157157 !llvm.ident = !{!15}
158158
159 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 248211) (llvm/trunk 248217)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, subprograms: !5)
159 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 248211) (llvm/trunk 248217)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, retainedTypes: !3, subprograms: !5)
160160 !1 = !DIFile(filename: "test.cc", directory: "/ssd/llvm_commit")
161161 !2 = !{}
162162 !3 = !{!4}
1515 ; return 0;
1616 ; }
1717 ;
18 ; Note that this test is missing the llvm.dbg.cu annotation. This emulates
19 ; the effect of the user having only used -fprofile-sample-use without
20 ; -gmlt when invoking the driver. In those cases, we need to track source
21 ; location information but we do not have to generate debug info in the
22 ; final binary.
2318 @.str = private unnamed_addr constant [11 x i8] c"sum is %d\0A\00", align 1
2419
2520 ; Function Attrs: nounwind uwtable
8883
8984 declare i32 @printf(i8*, ...) #2
9085
86 !llvm.dbg.cu = !{!0}
9187 !llvm.module.flags = !{!8, !9}
9288 !llvm.ident = !{!10}
9389
94 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
90 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
9591 !1 = !DIFile(filename: "calls.cc", directory: ".")
9692 !2 = !{}
9793 !3 = !{!4, !7}
8585 !llvm.module.flags = !{!15, !16}
8686 !llvm.ident = !{!17}
8787
88 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 253667) (llvm/trunk 253670)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3, globals: !11)
88 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 253667) (llvm/trunk 253670)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3, globals: !11)
8989 !1 = !DIFile(filename: "cov-zero-samples.cc", directory: ".")
9090 !2 = !{}
9191 !3 = !{!4, !8}
6565 !llvm.module.flags = !{!7, !8}
6666 !llvm.ident = !{!9}
6767
68 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
68 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
6969 !1 = !DIFile(filename: "discriminator.c", directory: ".")
7070 !2 = !{}
7171 !3 = !{!4}
143143 !llvm.module.flags = !{!13, !14}
144144 !llvm.ident = !{!15}
145145
146 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 247554) (llvm/trunk 247557)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
146 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 247554) (llvm/trunk 247557)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
147147 !1 = !DIFile(filename: "discriminator.cc", directory: "/usr/local/google/home/dnovillo/llvm/test/autofdo")
148148 !2 = !{}
149149 !3 = !{!4, !9}
8989 !llvm.module.flags = !{!13, !14}
9090 !llvm.ident = !{!15}
9191
92 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 251738) (llvm/trunk 251737)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
92 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 251738) (llvm/trunk 251737)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
9393 !1 = !DIFile(filename: "coverage.cc", directory: ".")
9494 !2 = !{}
9595 !3 = !{!4, !9}
7676
7777 declare i32 @printf(i8*, ...) #2
7878
79 !llvm.dbg.cu = !{!0}
7980 !llvm.module.flags = !{!8, !9}
8081 !llvm.ident = !{!10}
8182
82 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
83 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
8384 !1 = !DIFile(filename: "calls.cc", directory: ".")
8485 !2 = !{}
8586 !3 = !{!4, !7}
2222 !llvm.module.flags = !{!8, !9}
2323 !llvm.ident = !{!10}
2424
25 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.0 (trunk 251335) (llvm/trunk 251344)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
25 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.8.0 (trunk 251335) (llvm/trunk 251344)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
2626 !1 = !DIFile(filename: "nolocinfo.c", directory: ".")
2727 !2 = !{}
2828 !3 = !{!4}
5353 !llvm.module.flags = !{!8, !9}
5454 !llvm.ident = !{!10}
5555
56 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250750)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
56 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250750)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
5757 !1 = !DIFile(filename: "a.cc", directory: "/tmp")
5858 !2 = !{}
5959 !3 = !{!4}
197197 !llvm.module.flags = !{!8, !9}
198198 !llvm.ident = !{!10}
199199
200 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
200 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.5 ", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
201201 !1 = !DIFile(filename: "propagate.cc", directory: ".")
202202 !2 = !{}
203203 !3 = !{!4, !7}
123123 !llvm.module.flags = !{!16, !17}
124124 !llvm.ident = !{!18}
125125
126 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 251041) (llvm/trunk 251053)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
126 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 251041) (llvm/trunk 251053)", isOptimized: true, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
127127 !1 = !DIFile(filename: "remarks.cc", directory: ".")
128128 !2 = !{}
129129 !3 = !{!4, !13}
1212 declare void @llvm.dbg.value(metadata, i64, metadata, metadata) nounwind readnone
1313
1414 !llvm.module.flags = !{!13}
15 !llvm.dbg.lv.foo = !{!5}
15 !llvm.dbg.cu = !{!2}
1616
1717 !0 = distinct !DISubprogram(name: "foo", linkageName: "foo", line: 2, isLocal: false, isDefinition: true, virtualIndex: 6, isOptimized: true, file: !12, scope: !1, type: !3)
1818 !1 = !DIFile(filename: "b.c", directory: "/tmp")