aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-builtins.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-03-21 17:37:47 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-03-25 08:47:56 +0000
commit3eb5dcb67c40a2d26fe05442d1d64dcb3b9d1d09 (patch)
tree1ded79f30c1bf60f3e149e8be9095512e8abe33e /gcc/rust/expand/rust-macro-builtins.cc
parent267d80f146da679e44aa377f889d717032102268 (diff)
downloadgcc-3eb5dcb67c40a2d26fe05442d1d64dcb3b9d1d09.zip
gcc-3eb5dcb67c40a2d26fe05442d1d64dcb3b9d1d09.tar.gz
gcc-3eb5dcb67c40a2d26fe05442d1d64dcb3b9d1d09.tar.bz2
expand: Rename AttrVisitor -> CfgStrip
Since the expansion and stripping phase are now separated, it does not make sense to keep AttrVisitor named AttrVisitor. Furthermore, the visitor is already very complex, with a heavy mental load (erasing iterators, rearranging them, performing cfg-expansion, etc) so further attribute handling should probably happen in rust-attribute-checker.h gcc/rust/ChangeLog: * Make-lang.in: Rename rust-asttribute-visitor.o -> rust-cfg-strip.o * expand/rust-attribute-visitor.cc: Moved to... * expand/rust-cfg-strip.cc: ...here. * expand/rust-attribute-visitor.h: Moved to... * expand/rust-cfg-strip.h: ...here. * expand/rust-macro-expand.cc: Fix include of rust-attribute-visitor.h * expand/rust-macro-builtins.cc: Likewise. * rust-session-manager.cc (Session::expansion): Call CfgStrip instead of AttrVisitor.
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins.cc')
-rw-r--r--gcc/rust/expand/rust-macro-builtins.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/expand/rust-macro-builtins.cc b/gcc/rust/expand/rust-macro-builtins.cc
index f30c963..fe401aa 100644
--- a/gcc/rust/expand/rust-macro-builtins.cc
+++ b/gcc/rust/expand/rust-macro-builtins.cc
@@ -20,7 +20,7 @@
#include "rust-macro-builtins.h"
#include "rust-ast-fragment.h"
#include "rust-ast.h"
-#include "rust-attribute-visitor.h"
+#include "rust-cfg-strip.h"
#include "rust-diagnostics.h"
#include "rust-early-name-resolver.h"
#include "rust-expr.h"