Commit 2d35d31
committed
[IRGen][DebugInfo] Use attached SILLocation for generating var debug loc
Currently IRGen requires the AST node of a variable declaration to
generate debug location. However, this will fail if the input is SIL due
to the lack of AST reconstruction. Plus, it's unnecessary since we can
just use the `SILLocation` attached on `debug_value` (and its friends) SIL
instruction to generate the correct LLVM debug metadata.
Resolves SR-148681 parent b148264 commit 2d35d31
File tree
4 files changed
+44
-15
lines changed- lib/IRGen
- test/DebugInfo
4 files changed
+44
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
2331 | 2332 | | |
2332 | 2333 | | |
2333 | 2334 | | |
2334 | | - | |
| 2335 | + | |
2335 | 2336 | | |
2336 | 2337 | | |
2337 | 2338 | | |
| |||
2347 | 2348 | | |
2348 | 2349 | | |
2349 | 2350 | | |
2350 | | - | |
| 2351 | + | |
2351 | 2352 | | |
2352 | 2353 | | |
2353 | 2354 | | |
| |||
2541 | 2542 | | |
2542 | 2543 | | |
2543 | 2544 | | |
2544 | | - | |
| 2545 | + | |
2545 | 2546 | | |
2546 | 2547 | | |
2547 | 2548 | | |
| |||
2639 | 2640 | | |
2640 | 2641 | | |
2641 | 2642 | | |
2642 | | - | |
| 2643 | + | |
2643 | 2644 | | |
2644 | 2645 | | |
2645 | | - | |
| 2646 | + | |
2646 | 2647 | | |
2647 | 2648 | | |
2648 | 2649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1056 | 1056 | | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | | - | |
| 1059 | + | |
| 1060 | + | |
1060 | 1061 | | |
1061 | 1062 | | |
1062 | 1063 | | |
| |||
1072 | 1073 | | |
1073 | 1074 | | |
1074 | 1075 | | |
1075 | | - | |
| 1076 | + | |
1076 | 1077 | | |
1077 | 1078 | | |
1078 | | - | |
| 1079 | + | |
1079 | 1080 | | |
1080 | 1081 | | |
1081 | 1082 | | |
| |||
4596 | 4597 | | |
4597 | 4598 | | |
4598 | 4599 | | |
4599 | | - | |
| 4600 | + | |
4600 | 4601 | | |
4601 | 4602 | | |
4602 | 4603 | | |
| |||
4757 | 4758 | | |
4758 | 4759 | | |
4759 | 4760 | | |
4760 | | - | |
| 4761 | + | |
4761 | 4762 | | |
4762 | 4763 | | |
4763 | 4764 | | |
| |||
4805 | 4806 | | |
4806 | 4807 | | |
4807 | 4808 | | |
4808 | | - | |
| 4809 | + | |
4809 | 4810 | | |
4810 | 4811 | | |
4811 | 4812 | | |
| |||
5152 | 5153 | | |
5153 | 5154 | | |
5154 | 5155 | | |
5155 | | - | |
| 5156 | + | |
| 5157 | + | |
5156 | 5158 | | |
5157 | 5159 | | |
5158 | 5160 | | |
| |||
5366 | 5368 | | |
5367 | 5369 | | |
5368 | 5370 | | |
5369 | | - | |
| 5371 | + | |
5370 | 5372 | | |
5371 | 5373 | | |
5372 | 5374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments