diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-10-22 21:44:01 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-11-01 16:46:52 +0000 |
commit | e489a694c748ee205e5ac46eaafcb226f87f4538 (patch) | |
tree | 815f73e80642a3ac945e3f66dc1f0a51eb94d71d /gcc/rust/hir | |
parent | 5d622b6a6d61743e054b226e441c755e1062c067 (diff) | |
download | gcc-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')
0 files changed, 0 insertions, 0 deletions