Commit ce4b4ee
committed
[lldb] Allow SwiftASTContext fallbacks for types from expressions
Generally, it would be feasible to rely on DWARF and reflectio
metadata for JIT-compiled images, but in practice, not everything that
an expression returns may be anchored by a variable, which makes
having debug info for expression-defined types hit and miss. If an
expression type is involved, LLDB will have done the costly
SwiftASTContext initialization already, so there isn't much saved by
avoiding the fallback in this case.1 parent 22f7040 commit ce4b4ee
File tree
4 files changed
+56
-32
lines changed- lldb
- source/Plugins/TypeSystem/Swift
- test/API/lang/swift/expression/self
4 files changed
+56
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
63 | 82 | | |
64 | 83 | | |
65 | 84 | | |
| |||
Lines changed: 31 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1653 | 1653 | | |
1654 | 1654 | | |
1655 | 1655 | | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
1676 | | - | |
1677 | | - | |
1678 | | - | |
1679 | 1656 | | |
1680 | 1657 | | |
1681 | 1658 | | |
| |||
1691 | 1668 | | |
1692 | 1669 | | |
1693 | 1670 | | |
1694 | | - | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1695 | 1675 | | |
1696 | 1676 | | |
1697 | 1677 | | |
1698 | 1678 | | |
1699 | | - | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
1700 | 1683 | | |
1701 | 1684 | | |
1702 | 1685 | | |
| |||
1929 | 1912 | | |
1930 | 1913 | | |
1931 | 1914 | | |
1932 | | - | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
1933 | 1918 | | |
1934 | 1919 | | |
1935 | 1920 | | |
| |||
2817 | 2802 | | |
2818 | 2803 | | |
2819 | 2804 | | |
| 2805 | + | |
| 2806 | + | |
2820 | 2807 | | |
2821 | 2808 | | |
2822 | 2809 | | |
| |||
2827 | 2814 | | |
2828 | 2815 | | |
2829 | 2816 | | |
2830 | | - | |
| 2817 | + | |
2831 | 2818 | | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
2832 | 2822 | | |
2833 | 2823 | | |
2834 | 2824 | | |
| |||
2842 | 2832 | | |
2843 | 2833 | | |
2844 | 2834 | | |
2845 | | - | |
2846 | 2835 | | |
2847 | 2836 | | |
2848 | 2837 | | |
| |||
2900 | 2889 | | |
2901 | 2890 | | |
2902 | 2891 | | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
| 2896 | + | |
| 2897 | + | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
| 2901 | + | |
| 2902 | + | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
2903 | 2906 | | |
2904 | 2907 | | |
2905 | 2908 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
547 | 552 | | |
548 | 553 | | |
549 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
0 commit comments