aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-10-22 21:44:01 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-11-01 16:46:52 +0000
commite489a694c748ee205e5ac46eaafcb226f87f4538 (patch)
tree815f73e80642a3ac945e3f66dc1f0a51eb94d71d /gcc/rust/hir/rust-hir-dump.cc
parent5d622b6a6d61743e054b226e441c755e1062c067 (diff)
downloadgcc-e489a694c748ee205e5ac46eaafcb226f87f4538.zip
gcc-e489a694c748ee205e5ac46eaafcb226f87f4538.tar.gz
gcc-e489a694c748ee205e5ac46eaafcb226f87f4538.tar.bz2
Compile pattern match statements into conditional statements
gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (patterns_mergeable): Remove. (struct PatternMerge): Remove. (sort_tuple_patterns): Remove. (simplify_tuple_match): Remove. (CompileExpr::visit): Modify compilation of MatchExpr. * backend/rust-compile-pattern.cc (CompilePatternCaseLabelExpr::visit): Replace with... (CompilePatternCheckExpr::visit): ...this. * backend/rust-compile-pattern.h (class CompilePatternCaseLabelExpr): Replace with... (class CompilePatternCheckExpr): ...this. * backend/rust-compile-type.cc (TyTyResolveCompile::get_implicit_enumeral_node_type): Make enumeral type equivalent to isize. Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions