From 5a9c2732d5d9bff9710466e039105cf29e35405d Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Wed, 25 Oct 2023 16:56:09 +0200 Subject: gccrs: Add a default AST visitor This will allow us to derive other visitors from it and overload only a few selected visit methods. gcc/rust/ChangeLog: * Make-lang.in: Add the new visitor object file. * ast/rust-ast-visitor.h (class DefaultASTVisitor): Create the default visitor class. * ast/rust-ast.h: Add a new reference getter for visitor pattern. * ast/rust-ast-visitor.cc: New file. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/Make-lang.in | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/rust/Make-lang.in') diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index 015b433..1ff179f 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -79,6 +79,7 @@ GRS_OBJS = \ rust/rust-ast-fragment.o \ rust/rust-ast-dump.o \ rust/rust-ast-collector.o \ + rust/rust-ast-visitor.o \ rust/rust-hir-dump.o \ rust/rust-session-manager.o \ rust/rust-compile.o \ -- cgit v1.1