diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-07-27 16:21:25 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:56:02 +0100 |
commit | 0680907b3b19273b908c91306932abbf82f85cce (patch) | |
tree | f49ce96a39b9455891185efed2629703523a9f1f /gcc/cppdefault.h | |
parent | ff773b9030e443dbea0b4357bd10b480ff39c987 (diff) | |
download | gcc-0680907b3b19273b908c91306932abbf82f85cce.zip gcc-0680907b3b19273b908c91306932abbf82f85cce.tar.gz gcc-0680907b3b19273b908c91306932abbf82f85cce.tar.bz2 |
gccrs: 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.
libgrust/ChangeLog:
* libproc_macro/literal.cc (Literal__from_string): Add
implementation with call to constructor.
(Literal::make_literal): Add new constructor which calls the
callback.
* libproc_macro/literal.h: Add new constructor's
prototype.
* libproc_macro/proc_macro.cc (bridge_is_available):
Change symbol name to match convention.
* libproc_macro/registration.h: Add lit_from_str
symbol.
* 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/cppdefault.h')
0 files changed, 0 insertions, 0 deletions