aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-26 16:44:59 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:56:01 +0100
commitb190aaeff7b4b6e3b96dfe0b5277ccc93ccb9973 (patch)
tree6dc0bb34760f84cf0a836f1d379fea51b4cadbb5 /gcc
parentde7e34bdd6c62294831d867188807216e186ed03 (diff)
downloadgcc-b190aaeff7b4b6e3b96dfe0b5277ccc93ccb9973.zip
gcc-b190aaeff7b4b6e3b96dfe0b5277ccc93ccb9973.tar.gz
gcc-b190aaeff7b4b6e3b96dfe0b5277ccc93ccb9973.tar.bz2
gccrs: proc_macro: Rename from_string callback symbol
The symbol had a different convention from rust standard naming convention (?) hence the change before adding new callback. gcc/rust/ChangeLog: * expand/rust-proc-macro.cc (load_macros_array): Symbol rename. libgrust/ChangeLog: * libproc_macro/proc_macro.cc (Procmacro::make_bang): Change symbol name. * libproc_macro/registration.h: Likewise. * libproc_macro/tokenstream.cc (TokenStream::make_tokenstream): Likewise. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/expand/rust-proc-macro.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/expand/rust-proc-macro.cc b/gcc/rust/expand/rust-proc-macro.cc
index acd7f71..7843ead 100644
--- a/gcc/rust/expand/rust-proc-macro.cc
+++ b/gcc/rust/expand/rust-proc-macro.cc
@@ -26,7 +26,7 @@ namespace Rust {
const std::string PROC_MACRO_DECL_PREFIX = "__gccrs_proc_macro_decls_";
-ProcMacro::TokenStream
+static ProcMacro::TokenStream
tokenstream_from_string (std::string &data, bool &lex_error)
{
// FIXME: Insert location pointing to call site in tokens
@@ -92,7 +92,7 @@ load_macros_array (std::string path)
return nullptr;
}
- if (!REGISTER_CALLBACK (handle, __gccrs_pm_callback_from_str_fn,
+ if (!REGISTER_CALLBACK (handle, __gccrs_proc_macro_from_str_fn,
tokenstream_from_string))
return nullptr;