aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.cc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-03-02 14:41:54 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-03-25 08:47:34 +0000
commit2b52571e8aa28a100b8989ece12e929a9fb6bcf4 (patch)
treeefb9e0e3262ada92e75fce9b1fd3b1c284572643 /gcc/rust/rust-session-manager.cc
parenta3e7bde5b0ab530b10483818d52504f7942ecdd5 (diff)
downloadgcc-2b52571e8aa28a100b8989ece12e929a9fb6bcf4.zip
gcc-2b52571e8aa28a100b8989ece12e929a9fb6bcf4.tar.gz
gcc-2b52571e8aa28a100b8989ece12e929a9fb6bcf4.tar.bz2
lowering: Add lowering of exported macros
Macros marked with #[macro_export] need to be lowered to HIR in order to get exported to the relevant metadata files. gcc/rust/ChangeLog: * hir/rust-ast-lower-base.cc (ASTLoweringBase::lower_macro_definition): New function. * hir/rust-ast-lower-base.h: Declare `lower_macro_definition`. * hir/rust-ast-lower-item.cc (ASTLoweringItem::visit): Lower public macro definitions. * hir/rust-ast-lower-stmt.cc (ASTLoweringStmt::visit): Likewise. * hir/rust-ast-lower-stmt.h: Add visitor for `AST::MacroRulesDefinition`. * hir/rust-ast-lower.cc (ASTLowering::go): Formatting. (ASTLoweringBlock::visit): Visit `AST::MacroRulesDefinition` (ASTLoweringIfLetBlock::visit): Formatting. (ASTLoweringExprWithBlock::visit): Formatting.
Diffstat (limited to 'gcc/rust/rust-session-manager.cc')
0 files changed, 0 insertions, 0 deletions