From: Pierre-Emmanuel Patry <[email protected]>

Macros are already emitted by the AST dump within metadata files, we no
longer require a separate export pass from within the metadata exporter.

gcc/rust/ChangeLog:

        * metadata/rust-export-metadata.cc 
(PublicInterface::gather_export_data):
        Do not emit macros separately anymore.

Signed-off-by: Pierre-Emmanuel Patry <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/fb673fd332f7ca2d4035dfd9daef01e04415231d

The commit has NOT been mentioned in any issue.

The commit has been mentioned in the following pull-request(s):
 - https://github.com/Rust-GCC/gccrs/pull/4758

 gcc/rust/metadata/rust-export-metadata.cc | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gcc/rust/metadata/rust-export-metadata.cc 
b/gcc/rust/metadata/rust-export-metadata.cc
index f0618fa65..5120e6a70 100644
--- a/gcc/rust/metadata/rust-export-metadata.cc
+++ b/gcc/rust/metadata/rust-export-metadata.cc
@@ -99,9 +99,6 @@ PublicInterface::gather_export_data ()
     = mappings.crate.lookup_crate_num (crate.get_mappings ().get_nodeid ());
   auto &ast_crate = mappings.crate.get_ast_crate (crate_num.value ());
   context.emit_crate (ast_crate);
-
-  for (auto &macro : mappings.get_exported_macros ())
-    context.emit_macro (macro);
 }
 
 void
-- 
2.55.0

Reply via email to