Commit 79c8c8a
committed
rustc_codegen_llvm: Add debug locations to
So that stepping with a debugger over lines such as:
let h = ["whatever"; 8];
works.
Use the same technique as we already do in `cfi_type_test()`.
Since all emitted LLVM instructions are looped over, a debugger will
unfortunately step as many times as we repeat. Not sure how to solve
that. It can become quite annoying if you have say `1024` repetitions.write_operand_repeatedly()
1 parent ff5be13 commit 79c8c8a
File tree
2 files changed
+31
-2
lines changed- compiler/rustc_codegen_llvm/src
- tests/debuginfo
2 files changed
+31
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
| 773 | + | |
| 774 | + | |
773 | 775 | | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
777 | 779 | | |
778 | 780 | | |
779 | 781 | | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
780 | 785 | | |
781 | 786 | | |
782 | 787 | | |
783 | 788 | | |
784 | 789 | | |
785 | 790 | | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
786 | 794 | | |
787 | 795 | | |
788 | 796 | | |
| |||
791 | 799 | | |
792 | 800 | | |
793 | 801 | | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
794 | 805 | | |
795 | 806 | | |
796 | 807 | | |
| |||
1825 | 1836 | | |
1826 | 1837 | | |
1827 | 1838 | | |
| 1839 | + | |
1828 | 1840 | | |
1829 | 1841 | | |
1830 | 1842 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
25 | 42 | | |
26 | 43 | | |
27 | 44 | | |
| |||
0 commit comments