about summary refs log tree commit diff
path: root/src/liballoc/tests
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-10-30 23:36:10 +0000
committerbors <bors@rust-lang.org>2018-10-30 23:36:10 +0000
commit0db7abe5b6f3cdfca736f9238689cbea8ef61c7e (patch)
treeaf51f2a467017cf73d69494c03b524e61ba6d0ed /src/liballoc/tests
parent1cf82fd9c0e8eb9ff29d4165f9824c483bd72f7d (diff)
parent98b26888e552cf498518a6d34538302dc41ac6ae (diff)
downloadrust-0db7abe5b6f3cdfca736f9238689cbea8ef61c7e.tar.gz
rust-0db7abe5b6f3cdfca736f9238689cbea8ef61c7e.zip
Auto merge of #54004 - tromey:enum-debuginfo, r=tromey
Fix DWARF generation for enums

The DWARF generated for Rust enums was always somewhat unusual.
Rather than using DWARF constructs directly, it would emit magic field
names like "RUST$ENCODED$ENUM$0$Name" and "RUST$ENUM$DISR".  Since
PR #45225, though, even this has not worked -- the ad hoc scheme was
not updated to handle the wider variety of niche-filling layout
optimizations now available.

This patch changes the generated DWARF to use the standard tags meant
for this purpose; namely, DW_TAG_variant and DW_TAG_variant_part.

The patch to implement this went in to LLVM 7.  In order to work with
older versions of LLVM, and because LLVM doesn't do anything here for
PDB, the existing code is kept as a fallback mode.

Support for this DWARF is in the Rust lldb and in gdb 8.2.

Closes #32920
Closes #32924
Closes #52762
Closes #53153
Diffstat (limited to 'src/liballoc/tests')
0 files changed, 0 insertions, 0 deletions