Commit 342e28f
authored
[clang][DebugInfo] Attach
`DISubprogram`s are attached to call sites to support various debug info
features, including entry values and tail calls. Clang 9.0
(0f65168) was the first version to
include this kind of call site `DISubprogram` attachment.
This earlier work appears to visit only some call site variants,
however. The call site attachment was added to a higher-level `EmitCall`
path in Clang's code gen that is only used by some call variants. In
particular, some C++ member calls use a different code gen path, which
did not include this call site attachment step, and thus the debug info
it triggers (e.g. call site entries) was not emitted for such calls.
This moves `DISubprogram` attachment to a lower-level call emission path
that is used by all call variants.
Fixes #161962DISubprogram to additional call variants (#166202)1 parent 309729e commit 342e28f
File tree
5 files changed
+55
-17
lines changed- clang
- lib/CodeGen
- test/DebugInfo/CXX
5 files changed
+55
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
6277 | 6278 | | |
6278 | 6279 | | |
6279 | 6280 | | |
| 6281 | + | |
| 6282 | + | |
| 6283 | + | |
| 6284 | + | |
| 6285 | + | |
| 6286 | + | |
| 6287 | + | |
| 6288 | + | |
| 6289 | + | |
| 6290 | + | |
| 6291 | + | |
| 6292 | + | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
| 6297 | + | |
| 6298 | + | |
6280 | 6299 | | |
6281 | 6300 | | |
6282 | 6301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4957 | 4957 | | |
4958 | 4958 | | |
4959 | 4959 | | |
4960 | | - | |
| 4960 | + | |
4961 | 4961 | | |
4962 | 4962 | | |
4963 | 4963 | | |
| |||
4966 | 4966 | | |
4967 | 4967 | | |
4968 | 4968 | | |
| 4969 | + | |
| 4970 | + | |
| 4971 | + | |
4969 | 4972 | | |
4970 | 4973 | | |
4971 | 4974 | | |
| |||
4976 | 4979 | | |
4977 | 4980 | | |
4978 | 4981 | | |
4979 | | - | |
| 4982 | + | |
| 4983 | + | |
4980 | 4984 | | |
4981 | 4985 | | |
4982 | 4986 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
681 | 685 | | |
682 | 686 | | |
683 | 687 | | |
| |||
827 | 831 | | |
828 | 832 | | |
829 | 833 | | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | 834 | | |
836 | 835 | | |
837 | 836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6632 | 6632 | | |
6633 | 6633 | | |
6634 | 6634 | | |
6635 | | - | |
6636 | | - | |
6637 | | - | |
6638 | | - | |
6639 | | - | |
6640 | | - | |
6641 | | - | |
6642 | | - | |
6643 | | - | |
6644 | 6635 | | |
6645 | 6636 | | |
6646 | 6637 | | |
| |||
| 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