aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-27 16:21:25 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2023-07-28 09:15:21 +0000
commitfe6ad2e676ee5734856d86cf1dbbc12aef7e5561 (patch)
treeb7844fb216a15b089864aafef98f20f65b6e4157 /gcc/rust/hir
parent69454e53048e24c80c725f4258d6dfd13f7ed023 (diff)
downloadgcc-fe6ad2e676ee5734856d86cf1dbbc12aef7e5561.zip
gcc-fe6ad2e676ee5734856d86cf1dbbc12aef7e5561.tar.gz
gcc-fe6ad2e676ee5734856d86cf1dbbc12aef7e5561.tar.bz2
proc_macro: Add literal_from_string callback
The function to get a literal from a string missed an implementation. It did require a conversion function to achieve it, now that callback system has been merged this function can be easily implemented. gcc/rust/ChangeLog: * expand/rust-proc-macro.cc (literal_from_string): Add callback function. (load_macros_array): Likewise. ChangeLog: * libgrust/libproc_macro/literal.cc (Literal__from_string): Add implementation with call to constructor. (Literal::make_literal): Add new constructor which calls the callback. * libgrust/libproc_macro/literal.h: Add new constructor's prototype. * libgrust/libproc_macro/proc_macro.cc (bridge_is_available): Change symbol name to match convention. * libgrust/libproc_macro/registration.h: Add lit_from_str symbol. * libgrust/libproc_macro/tokenstream.cc (TokenStream::make_tokenstream): Change symbol name to disambiguate with literal from string. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions