]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make expand visitor inherit from default visitor
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 27 Nov 2023 13:12:20 +0000 (14:12 +0100)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Mon, 11 Dec 2023 12:27:32 +0000 (12:27 +0000)
commit61d4955bb761c9447e59b505bcaad91b66ae49fd
tree29a79def53dfe7eb5b972033928f654664b2fb86
parent17482423400dbbe7f1758e645641346a4a1824cf
Make expand visitor inherit from default visitor

Many visit functions in the expand visitor simply visit their components
like the default visitor. Making the expand visitor inherit from the
default visitor allows us to keep all visitor in sync without having to
change every visitor.

gcc/rust/ChangeLog:

* expand/rust-expand-visitor.cc (ExpandVisitor::go): Add call to visit
on the crate.
(ExpandVisitor::visit): Remove some visit functions in favor of their
default visitor counterpart.
* expand/rust-expand-visitor.h (class ExpandVisitor): Inherit from
default visitor and remove now useless function prototypes.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-expand-visitor.cc
gcc/rust/expand/rust-expand-visitor.h