diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-25 16:56:09 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:13:11 +0100 |
commit | 5a9c2732d5d9bff9710466e039105cf29e35405d (patch) | |
tree | c7e639b658a3e8eaf40e4a036c7d5aaf50a512ce /gcc/rust/Make-lang.in | |
parent | 7065e2dbfee8bd4088c8361158420b6667dfb8ff (diff) | |
download | gcc-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.in | 1 |
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 \ |