about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-08-25 13:52:52 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-08-25 17:07:59 +0530
commite0e1954bdc1570d119deddc46be2087b73f62995 (patch)
treee64a1fd4989f9681c1a4838586e5e877fdb73de2 /src/rustllvm/PassWrapper.cpp
parentf5499a001d9cbde6a672f9d393d9c80c63745f00 (diff)
parentcf6461168f5a784c996ffd6618d23f33113d2819 (diff)
downloadrust-e0e1954bdc1570d119deddc46be2087b73f62995.tar.gz
rust-e0e1954bdc1570d119deddc46be2087b73f62995.zip
Rollup merge of #35238 - vadimcn:macro-debug-locs, r=michaelwoerister
Fix debug line number info for macro expansions.

Macro expansions result in code tagged with completely different debug locations than the surrounding expressions.  This wrecks havoc on debugger's ability the step over source lines.
This change fixes the problem by tagging expanded code as "inlined" at the macro expansion site, which allows the debugger to sort it out.
Note that only the outermost expansion is currently handled, stepping into a macro will still result in stepping craziness.

r? @eddyb
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions