about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorlrh2000 <lrh2000@pku.edu.cn>2021-05-15 19:01:13 +0800
committerlrh2000 <lrh2000@pku.edu.cn>2021-07-09 23:09:48 +0800
commitcda90f55419ce449f3a9db327465d9b2ae7dfce9 (patch)
tree16325f4b16e3865b249ebcc2182eaea1a2ca54b1 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent29856acffeb87541bb167c33f4fdb13c31ba6de0 (diff)
downloadrust-cda90f55419ce449f3a9db327465d9b2ae7dfce9.tar.gz
rust-cda90f55419ce449f3a9db327465d9b2ae7dfce9.zip
Store names of captured variables in `optimized_mir`
- Closures in external crates may get compiled in because of
  monomorphization. We should store names of captured variables
  in `optimized_mir`, so that they are written into the metadata
  file and we can use them to generate debuginfo.

- If there are breakpoints inside closures, the names of captured
  variables stored in `optimized_mir` can be used to print them.
  Now the name is more precise when disjoint fields are captured.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions