aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-object-export.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-02 14:06:25 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-02 14:06:25 +0000
commit46ee20dbdbb02b40ae199293dfa774fafad72c0e (patch)
tree7a9abfd0b49074b315715fa1b2cef51951cabdca /gcc/rust/rust-object-export.cc
parent6e5f8f76cbe47880ceae1bcf0bf7f07f601517ec (diff)
downloadgcc-46ee20dbdbb02b40ae199293dfa774fafad72c0e.zip
gcc-46ee20dbdbb02b40ae199293dfa774fafad72c0e.tar.gz
gcc-46ee20dbdbb02b40ae199293dfa774fafad72c0e.tar.bz2
Fix enum variant discriminant values
Enum discriminants before this patch were either: - The hir-id of the tuple/struct variant - The expression of the specified discriminant - Computed int64 of the dataless variant Each of these had tree ways of computing the qualifier this patch changes this to be more in line with rust to compute the values unless its a specified discriminant value. In order to compile this we now create an implicit HIR::LiteralExpr and feed this into our constexpr code so it reuses the same path as the variants with a specified constant discriminant.
Diffstat (limited to 'gcc/rust/rust-object-export.cc')
0 files changed, 0 insertions, 0 deletions