gccrs: Create and use CompilePatternLet visitor for compiling let statments
authorOwen Avery <powerboat9.gamer@gmail.com>
Fri, 27 Jan 2023 16:47:30 +0000 (11:47 -0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 6 Apr 2023 08:47:18 +0000 (10:47 +0200)
commitad9d75f50804a983a06e2fdf69772188432359ae
treeac8e69147406e82df0e631236acce6376545e66b
parent51b607c22278fd9c17fc174accd89a22c41fcf2e
gccrs: Create and use CompilePatternLet visitor for compiling let statments

gcc/rust/ChangeLog:

* backend/rust-compile-pattern.cc (CompilePatternLet::visit): New function.
* backend/rust-compile-stmt.cc (CompileStmt::visit): Likewise.
* backend/rust-compile-pattern.h (class CompilePatternLet): New visitor.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/backend/rust-compile-pattern.cc
gcc/rust/backend/rust-compile-pattern.h
gcc/rust/backend/rust-compile-stmt.cc