rust/compiler/rustc_codegen_llvm/src/debuginfo
bors 99efc51dae Auto merge of #85020 - lrh2000:named-upvars, r=tmandry
Name the captured upvars for closures/generators in debuginfo

Previously, debuggers print closures as something like
```
y::main::closure-0 (0x7fffffffdd34)
```
The pointer actually references to an upvar. It is not very obvious, especially for beginners.

It's because upvars don't have names before, as they are packed into a tuple. This PR names the upvars, so we can expect to see something like
```
y::main::closure-0 {_captured_ref__b: 0x[...]}
```

r? `@tmandry`
Discussed at https://github.com/rust-lang/rust/pull/84752#issuecomment-831639489 .
2021-08-14 07:01:36 +00:00
..
create_scope_map.rs nhwn: use plain u32 in DebugLoc 2021-02-20 11:46:58 -06:00
doc.md Cleanup LLVM debuginfo module docs 2021-03-20 14:38:49 -07:00
gdb.rs Prepare inbounds_gep for opaque pointers 2021-08-04 15:51:30 +02:00
metadata.rs Avoid unnecessary String::clone 2021-07-09 23:09:50 +08:00
mod.rs Improve debug symbol names to avoid ambiguity and work better with MSVC's debugger 2021-06-30 11:10:29 -07:00
namespace.rs Improve debug symbol names to avoid ambiguity and work better with MSVC's debugger 2021-06-30 11:10:29 -07:00
utils.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00