comparison test/Linker/subprogram-linkonce-weak.ll @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents 7d135dc70f03
children 803732b1fca8
comparison
equal deleted inserted replaced
101:34baf5011add 120:1172e4bd9c6f
51 ; CHECK-LABEL: !llvm.dbg.cu = 51 ; CHECK-LABEL: !llvm.dbg.cu =
52 ; LW-SAME: !{![[LCU:[0-9]+]], ![[WCU:[0-9]+]]} 52 ; LW-SAME: !{![[LCU:[0-9]+]], ![[WCU:[0-9]+]]}
53 ; WL-SAME: !{![[WCU:[0-9]+]], ![[LCU:[0-9]+]]} 53 ; WL-SAME: !{![[WCU:[0-9]+]], ![[LCU:[0-9]+]]}
54 !llvm.dbg.cu = !{!1} 54 !llvm.dbg.cu = !{!1}
55 55
56 ; LW: ![[LCU]] = distinct !DICompileUnit({{.*}} subprograms: ![[LSPs:[0-9]+]] 56 ; LW: ![[LCU]] = distinct !DICompileUnit(
57 ; LW: ![[LSPs]] = !{![[BARSP]], ![[FOOSP:[0-9]+]]} 57 ; LW: ![[WCU]] = distinct !DICompileUnit(
58 ; LW: ![[BARSP]] = distinct !DISubprogram(name: "bar", 58 ; LW: ![[BARSP]] = distinct !DISubprogram(name: "bar",{{.*}} unit: ![[LCU]]
59 ; LW: ![[FOOSP]] = distinct !DISubprogram(name: "foo", 59 ; LW: ![[FOOINBAR]] = !DILocation(line: 2, scope: ![[FOOSP:.*]], inlinedAt: ![[BARIA:[0-9]+]])
60 ; LW: ![[WCU]] = distinct !DICompileUnit({{.*}} subprograms: ![[WSPs:[0-9]+]] 60 ; LW: ![[FOOSP]] = distinct !DISubprogram(name: "foo",{{.*}} unit: ![[LCU]]
61 ; LW: ![[WSPs]] = !{![[WEAKFOOSP]]}
62 ; LW: ![[WEAKFOOSP]] = distinct !DISubprogram(name: "foo",
63 ; LW: ![[FOOINBAR]] = !DILocation(line: 2, scope: ![[FOOSP]], inlinedAt: ![[BARIA:[0-9]+]])
64 ; LW: ![[BARIA]] = !DILocation(line: 12, scope: ![[BARSP]]) 61 ; LW: ![[BARIA]] = !DILocation(line: 12, scope: ![[BARSP]])
65 ; LW: ![[BARRET]] = !DILocation(line: 13, scope: ![[BARSP]]) 62 ; LW: ![[BARRET]] = !DILocation(line: 13, scope: ![[BARSP]])
63 ; LW: ![[WEAKFOOSP]] = distinct !DISubprogram(name: "foo",{{.*}} unit: ![[WCU]]
66 ; LW: ![[FOOCALL]] = !DILocation(line: 52, scope: ![[WEAKFOOSP]]) 64 ; LW: ![[FOOCALL]] = !DILocation(line: 52, scope: ![[WEAKFOOSP]])
67 ; LW: ![[FOORET]] = !DILocation(line: 53, scope: ![[WEAKFOOSP]]) 65 ; LW: ![[FOORET]] = !DILocation(line: 53, scope: ![[WEAKFOOSP]])
68 66
69 ; Same as above, but reordered. 67 ; Same as above, but reordered.
70 ; WL: ![[WCU]] = distinct !DICompileUnit({{.*}} subprograms: ![[WSPs:[0-9]+]] 68 ; WL: ![[WCU]] = distinct !DICompileUnit(
71 ; WL: ![[WSPs]] = !{![[WEAKFOOSP]]} 69 ; WL: ![[LCU]] = distinct !DICompileUnit(
72 ; WL: ![[WEAKFOOSP]] = distinct !DISubprogram(name: "foo", 70 ; WL: ![[WEAKFOOSP]] = distinct !DISubprogram(name: "foo",{{.*}} unit: ![[WCU]]
73 ; WL: ![[LCU]] = distinct !DICompileUnit({{.*}} subprograms: ![[LSPs:[0-9]+]]
74 ; WL: ![[LSPs]] = !{![[BARSP:[0-9]+]], ![[FOOSP:[0-9]+]]}
75 ; WL: ![[BARSP]] = distinct !DISubprogram(name: "bar",
76 ; WL: ![[FOOSP]] = distinct !DISubprogram(name: "foo",
77 ; WL: ![[FOOCALL]] = !DILocation(line: 52, scope: ![[WEAKFOOSP]]) 71 ; WL: ![[FOOCALL]] = !DILocation(line: 52, scope: ![[WEAKFOOSP]])
78 ; WL: ![[FOORET]] = !DILocation(line: 53, scope: ![[WEAKFOOSP]]) 72 ; WL: ![[FOORET]] = !DILocation(line: 53, scope: ![[WEAKFOOSP]])
79 ; WL: ![[FOOINBAR]] = !DILocation(line: 2, scope: ![[FOOSP]], inlinedAt: ![[BARIA:[0-9]+]]) 73 ; WL: ![[BARSP]] = distinct !DISubprogram(name: "bar",{{.*}} unit: ![[LCU]]
74 ; WL: ![[FOOINBAR]] = !DILocation(line: 2, scope: ![[FOOSP:.*]], inlinedAt: ![[BARIA:[0-9]+]])
75 ; WL: ![[FOOSP]] = distinct !DISubprogram(name: "foo",{{.*}} unit: ![[LCU]]
80 ; WL: ![[BARIA]] = !DILocation(line: 12, scope: ![[BARSP]]) 76 ; WL: ![[BARIA]] = !DILocation(line: 12, scope: ![[BARSP]])
81 ; WL: ![[BARRET]] = !DILocation(line: 13, scope: ![[BARSP]]) 77 ; WL: ![[BARRET]] = !DILocation(line: 13, scope: ![[BARSP]])
82 78
83 !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, subprograms: !{!3, !4}, emissionKind: 1) 79 !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, emissionKind: FullDebug)
84 !2 = !DIFile(filename: "bar.c", directory: "/path/to/dir") 80 !2 = !DIFile(filename: "bar.c", directory: "/path/to/dir")
85 !3 = distinct !DISubprogram(file: !2, scope: !2, line: 11, name: "bar", type: !5) 81 !3 = distinct !DISubprogram(file: !2, scope: !2, line: 11, name: "bar", type: !5, unit: !1)
86 !4 = distinct !DISubprogram(file: !2, scope: !2, line: 1, name: "foo", type: !5) 82 !4 = distinct !DISubprogram(file: !2, scope: !2, line: 1, name: "foo", type: !5, unit: !1)
87 !5 = !DISubroutineType(types: !{}) 83 !5 = !DISubroutineType(types: !{})
88 84
89 ; Crasher for llc. 85 ; Crasher for llc.
90 ; REQUIRES: object-emission 86 ; REQUIRES: object-emission
91 ; RUN: %llc_dwarf -filetype=obj -O0 %t1 -o %t1.o 87 ; RUN: %llc_dwarf -filetype=obj -O0 %t1 -o %t1.o