@@ -11,30 +11,30 @@ declare void @personality()
1111
1212define void @h () personality ptr @personality !dbg !100 {
1313entry:
14- ; CHECK: remark: test.c:16:5: in artificial function 'h ', direct call, callee is 'f'
14+ ; CHECK: remark: test.c:16:5: in artificial function 'h_dbg ', direct call, callee is '@ f'
1515 call void @f (), !dbg !102
16- ; CHECK: remark: test.c:17:5: in artificial function 'h ', direct call to defined function, callee is 'g '
16+ ; CHECK: remark: test.c:17:5: in artificial function 'h_dbg ', direct call to defined function, callee is 'g_dbg '
1717 call void @g (), !dbg !104
18- ; CHECK: remark: test.c:18:5: in artificial function 'h ', direct call to defined function, callee is artificial 'h '
18+ ; CHECK: remark: test.c:18:5: in artificial function 'h_dbg ', direct call to defined function, callee is artificial 'h_dbg '
1919 call void @h (), !dbg !105
20- ; CHECK: remark: test.c:24:5: in artificial function 'h ', direct call to inline assembly, callee is 'asm sideeffect "eieio", ""'
20+ ; CHECK: remark: test.c:24:5: in artificial function 'h_dbg ', direct call to inline assembly, callee is 'asm sideeffect "eieio", ""'
2121 call void asm sideeffect "eieio" , "" (), !dbg !111
2222 %fnPtr = load ptr , ptr null , align 8
23- ; CHECK: remark: test.c:19:5: in artificial function 'h ', indirect call, callee is '%fnPtr'
23+ ; CHECK: remark: test.c:19:5: in artificial function 'h_dbg ', indirect call, callee is '%fnPtr'
2424 call void %fnPtr (), !dbg !106
25- ; CHECK: remark: test.c:20:5: in artificial function 'h ', direct invoke, callee is 'f'
25+ ; CHECK: remark: test.c:20:5: in artificial function 'h_dbg ', direct invoke, callee is '@ f'
2626 invoke void @f () to label %fcont unwind label %cleanup , !dbg !107
2727fcont:
28- ; CHECK: remark: test.c:21:5: in artificial function 'h ', direct invoke to defined function, callee is 'g '
28+ ; CHECK: remark: test.c:21:5: in artificial function 'h_dbg ', direct invoke to defined function, callee is 'g_dbg '
2929 invoke void @g () to label %gcont unwind label %cleanup , !dbg !108
3030gcont:
31- ; CHECK: remark: test.c:22:5: in artificial function 'h ', direct invoke to defined function, callee is artificial 'h '
31+ ; CHECK: remark: test.c:22:5: in artificial function 'h_dbg ', direct invoke to defined function, callee is artificial 'h_dbg '
3232 invoke void @h () to label %hcont unwind label %cleanup , !dbg !109
3333hcont:
34- ; CHECK: remark: test.c:25:5: in artificial function 'h ', direct invoke to inline assembly, callee is 'asm sideeffect "eieio", ""'
34+ ; CHECK: remark: test.c:25:5: in artificial function 'h_dbg ', direct invoke to inline assembly, callee is 'asm sideeffect "eieio", ""'
3535 invoke void asm sideeffect "eieio" , "" () to label %asmcont unwind label %cleanup , !dbg !112
3636asmcont:
37- ; CHECK: remark: test.c:23:5: in artificial function 'h ', indirect invoke, callee is '%fnPtr'
37+ ; CHECK: remark: test.c:23:5: in artificial function 'h_dbg ', indirect invoke, callee is '%fnPtr'
3838 invoke void %fnPtr () to label %end unwind label %cleanup , !dbg !110
3939cleanup:
4040 %ll = landingpad { ptr , i32 }
@@ -43,40 +43,40 @@ cleanup:
4343end:
4444 ret void
4545}
46- ; CHECK: remark: test.c:13:0: in artificial function 'h ', DirectCalls = 8
47- ; CHECK: remark: test.c:13:0: in artificial function 'h ', IndirectCalls = 2
48- ; CHECK: remark: test.c:13:0: in artificial function 'h ', DirectCallsToDefinedFunctions = 4
49- ; CHECK: remark: test.c:13:0: in artificial function 'h ', InlineAssemblyCalls = 2
50- ; CHECK: remark: test.c:13:0: in artificial function 'h ', Invokes = 5
46+ ; CHECK: remark: test.c:13:0: in artificial function 'h_dbg ', DirectCalls = 8
47+ ; CHECK: remark: test.c:13:0: in artificial function 'h_dbg ', IndirectCalls = 2
48+ ; CHECK: remark: test.c:13:0: in artificial function 'h_dbg ', DirectCallsToDefinedFunctions = 4
49+ ; CHECK: remark: test.c:13:0: in artificial function 'h_dbg ', InlineAssemblyCalls = 2
50+ ; CHECK: remark: test.c:13:0: in artificial function 'h_dbg ', Invokes = 5
5151
5252declare void @f ()
5353
5454define void @g () personality ptr @personality !dbg !200 {
5555entry:
56- ; CHECK: remark: test.c:6:3: in function 'g ', direct call, callee is 'f'
56+ ; CHECK: remark: test.c:6:3: in function 'g_dbg ', direct call, callee is '@ f'
5757 call void @f (), !dbg !202
58- ; CHECK: remark: test.c:7:3: in function 'g ', direct call to defined function, callee is 'g '
58+ ; CHECK: remark: test.c:7:3: in function 'g_dbg ', direct call to defined function, callee is 'g_dbg '
5959 call void @g (), !dbg !203
60- ; CHECK: remark: test.c:8:3: in function 'g ', direct call to defined function, callee is artificial 'h '
60+ ; CHECK: remark: test.c:8:3: in function 'g_dbg ', direct call to defined function, callee is artificial 'h_dbg '
6161 call void @h (), !dbg !204
62- ; CHECK: remark: test.c:14:3: in function 'g ', direct call to inline assembly, callee is 'asm sideeffect "eieio", ""'
62+ ; CHECK: remark: test.c:14:3: in function 'g_dbg ', direct call to inline assembly, callee is 'asm sideeffect "eieio", ""'
6363 call void asm sideeffect "eieio" , "" (), !dbg !210
6464 %fnPtr = load ptr , ptr null , align 8
65- ; CHECK: remark: test.c:9:3: in function 'g ', indirect call, callee is '%fnPtr'
65+ ; CHECK: remark: test.c:9:3: in function 'g_dbg ', indirect call, callee is '%fnPtr'
6666 call void %fnPtr (), !dbg !205
67- ; CHECK: remark: test.c:10:3: in function 'g ', direct invoke, callee is 'f'
67+ ; CHECK: remark: test.c:10:3: in function 'g_dbg ', direct invoke, callee is '@ f'
6868 invoke void @f () to label %fcont unwind label %cleanup , !dbg !206
6969fcont:
70- ; CHECK: remark: test.c:11:3: in function 'g ', direct invoke to defined function, callee is 'g '
70+ ; CHECK: remark: test.c:11:3: in function 'g_dbg ', direct invoke to defined function, callee is 'g_dbg '
7171 invoke void @g () to label %gcont unwind label %cleanup , !dbg !207
7272gcont:
73- ; CHECK: remark: test.c:12:3: in function 'g ', direct invoke to defined function, callee is artificial 'h '
73+ ; CHECK: remark: test.c:12:3: in function 'g_dbg ', direct invoke to defined function, callee is artificial 'h_dbg '
7474 invoke void @h () to label %hcont unwind label %cleanup , !dbg !208
7575hcont:
76- ; CHECK: remark: test.c:15:3: in function 'g ', direct invoke to inline assembly, callee is 'asm sideeffect "eieio", ""'
76+ ; CHECK: remark: test.c:15:3: in function 'g_dbg ', direct invoke to inline assembly, callee is 'asm sideeffect "eieio", ""'
7777 invoke void asm sideeffect "eieio" , "" () to label %asmcont unwind label %cleanup , !dbg !211
7878asmcont:
79- ; CHECK: remark: test.c:13:3: in function 'g ', indirect invoke, callee is '%fnPtr'
79+ ; CHECK: remark: test.c:13:3: in function 'g_dbg ', indirect invoke, callee is '%fnPtr'
8080 invoke void %fnPtr () to label %end unwind label %cleanup , !dbg !209
8181cleanup:
8282 %ll = landingpad { ptr , i32 }
@@ -85,11 +85,22 @@ cleanup:
8585end:
8686 ret void
8787}
88- ; CHECK: remark: test.c:3:0: in function 'g', DirectCalls = 8
89- ; CHECK: remark: test.c:3:0: in function 'g', IndirectCalls = 2
90- ; CHECK: remark: test.c:3:0: in function 'g', DirectCallsToDefinedFunctions = 4
91- ; CHECK: remark: test.c:3:0: in function 'g', InlineAssemblyCalls = 2
92- ; CHECK: remark: test.c:3:0: in function 'g', Invokes = 5
88+ ; CHECK: remark: test.c:3:0: in function 'g_dbg', DirectCalls = 8
89+ ; CHECK: remark: test.c:3:0: in function 'g_dbg', IndirectCalls = 2
90+ ; CHECK: remark: test.c:3:0: in function 'g_dbg', DirectCallsToDefinedFunctions = 4
91+ ; CHECK: remark: test.c:3:0: in function 'g_dbg', InlineAssemblyCalls = 2
92+ ; CHECK: remark: test.c:3:0: in function 'g_dbg', Invokes = 5
93+
94+ define void @i () {
95+ ; CHECK: remark: <unknown>:0:0: in function '@i', direct call, callee is '@f'
96+ call void @f ()
97+ ret void
98+ }
99+ ; CHECK: remark: <unknown>:0:0: in function '@i', DirectCalls = 1
100+ ; CHECK: remark: <unknown>:0:0: in function '@i', IndirectCalls = 0
101+ ; CHECK: remark: <unknown>:0:0: in function '@i', DirectCallsToDefinedFunctions = 0
102+ ; CHECK: remark: <unknown>:0:0: in function '@i', InlineAssemblyCalls = 0
103+ ; CHECK: remark: <unknown>:0:0: in function '@i', Invokes = 0
93104
94105!llvm.module.flags = !{!0 }
95106!llvm.dbg.cu = !{!1 }
100111!3 = !{null }
101112!4 = !{}
102113
103- !100 = distinct !DISubprogram (name: "h " , scope: !2 , file: !2 , line: 13 , type: !101 , scopeLine: 13 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
114+ !100 = distinct !DISubprogram (name: "h_dbg " , scope: !2 , file: !2 , line: 13 , type: !101 , scopeLine: 13 , flags: DIFlagArtificial | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
104115!101 = distinct !DISubroutineType (types: !3 )
105116!102 = !DILocation (line: 16 , column: 5 , scope: !103 )
106117!103 = distinct !DILexicalBlock (scope: !100 , file: !2 , line: 13 , column: 3 )
114125!111 = !DILocation (line: 24 , column: 5 , scope: !103 )
115126!112 = !DILocation (line: 25 , column: 5 , scope: !103 )
116127
117- !200 = distinct !DISubprogram (name: "g " , scope: !2 , file: !2 , line: 3 , type: !201 , scopeLine: 3 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
128+ !200 = distinct !DISubprogram (name: "g_dbg " , scope: !2 , file: !2 , line: 3 , type: !201 , scopeLine: 3 , spFlags: DISPFlagDefinition, unit: !1 , retainedNodes: !4 )
118129!201 = !DISubroutineType (types: !3 )
119130!202 = !DILocation (line: 6 , column: 3 , scope: !200 )
120131!203 = !DILocation (line: 7 , column: 3 , scope: !200 )
0 commit comments