Commit 823563a
committed
Fix bug in cas-friendly-debug-info option.
Fix bug with emitting a DW_LNS_set_file at the beginning of a new
function's contribution to a line table, when the
-cas-friendly-debug-info option is passed. We were setting the current
FileNum to 0, however, if the LineEntry to be emitted also has the
FileNum be 0, we don't emit a DW_LNS_set_file at all, it is only emitted
if the current FileNum and the LineEntry to be emitted have different
FileNums.
To fix this, in cas-friendly-debug-info, we always set the current
FileNum to be -1.
rdar://1619306161 parent eb374f8 commit 823563a
2 files changed
+30
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| 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 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
0 commit comments