diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-03-15 17:30:25 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:28:38 +0100 |
commit | 848bbbd7735e07fbbdacd3311127b56b0a2b2616 (patch) | |
tree | b6628f154b09d2451132a1968ff708eac0ad2eed /gcc/rust/Make-lang.in | |
parent | 8576cdbb5a0ec8113860b6cd400be2b88a836489 (diff) | |
download | gcc-848bbbd7735e07fbbdacd3311127b56b0a2b2616.zip gcc-848bbbd7735e07fbbdacd3311127b56b0a2b2616.tar.gz gcc-848bbbd7735e07fbbdacd3311127b56b0a2b2616.tar.bz2 |
gccrs: mappings: Keep exported macro IDs
gcc/rust/ChangeLog:
* hir/rust-ast-lower-item.cc (ASTLoweringItem::visit): Add new visitor
for AST::MacroRulesDefinition.
* hir/rust-ast-lower-item.h: Declare above mentioned visitor.
* metadata/rust-export-metadata.cc (ExportContext::emit_macro): New function.
* metadata/rust-export-metadata.h: Declare it.
(PublicInterface::gather_export_data): Go through each exported macro.
* util/rust-hir-map.cc (Mappings::insert_exported_macro): New function.
(Mappings::get_exported_macros): New function.
* util/rust-hir-map.h: Add new mappings for exported macros.
Diffstat (limited to 'gcc/rust/Make-lang.in')
0 files changed, 0 insertions, 0 deletions