[PATCH] D42082: Add DWARF for discriminated unions

Tom Tromey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 15:52:03 PST 2018


tromey added a comment.

In https://reviews.llvm.org/D42082#988490, @probinson wrote:

>




> I found this example, which sure looks like multiple members in a variant, here:
>  https://stackoverflow.com/questions/29248665/why-does-rust-not-have-unions

In cases like this, a separate type is emitted for the contents of each variant.
So from the DWARF point of view there is just a single variant in the variant part, but this variant may be a structure.


Repository:
  rL LLVM

https://reviews.llvm.org/D42082





More information about the llvm-commits mailing list