llvm.org GIT mirror llvm / a265a6e
Update discriminator testcases to use proper NoDebug CUs instead of omitting !llvm.dbg.cu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265961 91177308-0d34-0410-b5e6-96231b3b80d8 Adrian Prantl 3 years ago
5 changed file(s) with 10 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
3636
3737 attributes #0 = { nounwind uwtable "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" "unsafe-fp-math"="false" "use-soft-float"="false" }
3838
39 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
40 ; When using sample profiles, the front end will generate line tables but it
41 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
42 ; to the final binary.
43 ; !llvm.dbg.cu = !{!0}
39 !llvm.dbg.cu = !{!0}
4440 !llvm.module.flags = !{!7, !8}
4541 !llvm.ident = !{!9}
4642
47 !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)
43 !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)
4844 !1 = !DIFile(filename: "basic.c", directory: ".")
4945 !2 = !{}
5046 !3 = !{!4}
2222 attributes #0 = { 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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
2323 attributes #1 = { "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"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
2424
25 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
26 ; When using sample profiles, the front end will generate line tables but it
27 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
28 ; to the final binary.
29 ; !llvm.dbg.cu = !{!0}
25 !llvm.dbg.cu = !{!0}
3026 !llvm.module.flags = !{!7, !8}
3127 !llvm.ident = !{!9}
3228
33 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250915) (llvm/trunk 251830)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
29 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250915) (llvm/trunk 251830)", isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
3430 !1 = !DIFile(filename: "c.cc", directory: "/tmp")
3531 !2 = !{}
3632 !3 = !{!4}
4545
4646 attributes #0 = { nounwind uwtable "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" "unsafe-fp-math"="false" "use-soft-float"="false" }
4747
48 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
49 ; When using sample profiles, the front end will generate line tables but it
50 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
51 ; to the final binary.
52 ; !llvm.dbg.cu = !{!0}
48 !llvm.dbg.cu = !{!0}
5349 !llvm.module.flags = !{!7, !8}
5450 !llvm.ident = !{!9}
5551
56 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
52 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
5753 !1 = !DIFile(filename: "first-only.c", directory: ".")
5854 !2 = !{}
5955 !3 = !{!4}
4646
4747 attributes #0 = { nounwind uwtable "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" "unsafe-fp-math"="false" "use-soft-float"="false" }
4848
49 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
50 ; When using sample profiles, the front end will generate line tables but it
51 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
52 ; to the final binary.
53 ; !llvm.dbg.cu = !{!0}
49 !llvm.dbg.cu = !{!0}
5450 !llvm.module.flags = !{!7, !8}
5551 !llvm.ident = !{!9}
5652
57 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
53 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
5854 !1 = !DIFile(filename: "multiple.c", directory: ".")
5955 !2 = !{}
6056 !3 = !{!4}
5353 attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
5454 attributes #1 = { nounwind readnone }
5555
56 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
57 ; When using sample profiles, the front end will generate line tables but it
58 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
59 ; to the final binary.
60 ; !llvm.dbg.cu = !{!0}
56 !llvm.dbg.cu = !{!0}
6157 !llvm.module.flags = !{!10, !11}
6258 !llvm.ident = !{!12}
6359
64 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250915)", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, subprograms: !3)
60 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 3.8.0 (trunk 250915)", isOptimized: true, runtimeVersion: 0, emissionKind: NoDebug, enums: !2, subprograms: !3)
6561 !1 = !DIFile(filename: "a.cc", directory: "/usr/local/google/home/dehao/discr")
6662 !2 = !{}
6763 !3 = !{!4}