aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/Make-lang.in
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-25 16:56:09 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:13:11 +0100
commit5a9c2732d5d9bff9710466e039105cf29e35405d (patch)
treec7e639b658a3e8eaf40e4a036c7d5aaf50a512ce /gcc/rust/Make-lang.in
parent7065e2dbfee8bd4088c8361158420b6667dfb8ff (diff)
downloadgcc-5a9c2732d5d9bff9710466e039105cf29e35405d.zip
gcc-5a9c2732d5d9bff9710466e039105cf29e35405d.tar.gz
gcc-5a9c2732d5d9bff9710466e039105cf29e35405d.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/Make-lang.in')
-rw-r--r--gcc/rust/Make-lang.in1
1 files changed, 1 insertions, 0 deletions
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 \