diff options
author | jjasmine <tanghocle456@gmail.com> | 2024-06-04 19:34:58 -0700 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:45 +0100 |
commit | fe3dd57b568e333656cb332f1a8b3c0dea0df976 (patch) | |
tree | 1deee3d4f0e465959b3702e18ac5770e6660db97 /gcc/rust/ast/rust-ast.cc | |
parent | c3c045746ece1ccbfcd8d96c3b8ead99f08dd194 (diff) | |
download | gcc-fe3dd57b568e333656cb332f1a8b3c0dea0df976.zip gcc-fe3dd57b568e333656cb332f1a8b3c0dea0df976.tar.gz gcc-fe3dd57b568e333656cb332f1a8b3c0dea0df976.tar.bz2 |
gccrs: Scaffolding ast visitor for InlineAsm
gcc/rust/ChangeLog:
* ast/rust-ast-visitor.h:
Scaffolding ast visitor for InlineAsm
* ast/rust-ast.cc (InlineAsm::accept_vis): Likewise.
* ast/rust-expr.h: Likewise.
Diffstat (limited to 'gcc/rust/ast/rust-ast.cc')
-rw-r--r-- | gcc/rust/ast/rust-ast.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast.cc b/gcc/rust/ast/rust-ast.cc index 38cb7cf..2ff2e13 100644 --- a/gcc/rust/ast/rust-ast.cc +++ b/gcc/rust/ast/rust-ast.cc @@ -21,6 +21,7 @@ along with GCC; see the file COPYING3. If not see #include "optional.h" #include "rust-builtin-ast-nodes.h" #include "rust-common.h" +#include "rust-expr.h" #include "rust-system.h" #include "rust-ast-full.h" #include "rust-diagnostics.h" @@ -4656,6 +4657,12 @@ AsyncBlockExpr::accept_vis (ASTVisitor &vis) } void +InlineAsm::accept_vis (ASTVisitor &vis) +{ + vis.visit (*this); +} + +void TypeParam::accept_vis (ASTVisitor &vis) { vis.visit (*this); |