summary refs log tree commit diff
path: root/src/test/codegen/debug-vtable.rs
AgeCommit message (Collapse)AuthorLines
2022-02-03debuginfo: Bring back DW_AT_containing_type for vtables after it has ↵Michael Woerister-5/+30
accidentally been removed in https://github.com/rust-lang/rust/pull/89597. Also describe vtables as structs with a field for each entry.
2022-02-01debuginfo: Make sure that type names for closure and generator environments ↵Michael Woerister-14/+39
are unique in debuginfo. Before this change, closure/generator environments coming from different instantiations of the same generic function were all assigned the same name even though they were distinct types with potentially different data layout. Now we append the generic arguments of the originating function to the type name. This commit also emits '{closure_env#0}' as the name of these types in order to disambiguate them from the accompanying closure function '{closure#0}'. Previously both were assigned the same name.
2021-10-19Update src/test/codegen/debug-vtable.rsWesley Wiser-1/+1
Co-authored-by: r00ster <r00ster91@protonmail.com>
2021-10-19Erase late-bound regions before computing vtable debuginfo name.Michael Woerister-0/+10
2021-10-08Create more accurate debuginfo for vtables.Michael Woerister-0/+47
Before this commit all vtables would have the same name "vtable" in debuginfo. Now they get a name that identifies the implementing type and the trait that is being implemented.