diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-02 14:41:54 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:38 +0100 |
commit | 9946ef210f40985ce8ab7e5faae43b23f08988a8 (patch) | |
tree | eba3c4b77f52143c1c42ae22f7f9f4b018e3005e /gcc/rust/Make-lang.in | |
parent | 848bbbd7735e07fbbdacd3311127b56b0a2b2616 (diff) | |
download | gcc-9946ef210f40985ce8ab7e5faae43b23f08988a8.zip gcc-9946ef210f40985ce8ab7e5faae43b23f08988a8.tar.gz gcc-9946ef210f40985ce8ab7e5faae43b23f08988a8.tar.bz2 |
gccrs: 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/Make-lang.in')
0 files changed, 0 insertions, 0 deletions