aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-04 12:01:44 +0200
committerPhilip Herron <philip.herron@embecosm.com>2023-10-31 11:39:08 +0000
commitb71fd2afa8316c3a247754963d801c4b7ca0050d (patch)
tree014b4b4b333b39c1d00b5d1011d44f996c2e919e /gcc/rust/hir/rust-hir-dump.cc
parent16c0f9c7fba577cb1c1c64d53468baeed81769a0 (diff)
downloadgcc-b71fd2afa8316c3a247754963d801c4b7ca0050d.zip
gcc-b71fd2afa8316c3a247754963d801c4b7ca0050d.tar.gz
gcc-b71fd2afa8316c3a247754963d801c4b7ca0050d.tar.bz2
Change proc macro entrypoint
Change proc macro entrypoint from a fixed constant declaration to a proper generation from the stable crate id. Although the stable crate id is not in use yet, the mechanism to handle it is. gcc/rust/ChangeLog: * expand/rust-proc-macro.cc (CustomDeriveProcMacro::CustomDeriveProcMacro): Remove constant string declaration. (load_macros_array): Add call to the new generation function. (generate_proc_macro_decls_symbol): Add a new function to generate the entrypoint symbol name from the stable crate id. (PROC_MACRO_DECLS_FMT_ARGS): New macro to keep formats arguments in sync between each call. * expand/rust-proc-macro.h (generate_proc_macro_decls_symbol): Add function prototype. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions