]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: proc_macro: Remode function indirection
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 26 Jul 2023 15:44:50 +0000 (17:44 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:01 +0000 (18:56 +0100)
commit8db58652d87e3b3bd208aea8f3aad14427780f0a
treed20074b949a6819c8ac8805ce11a97bd508a9577
parentce09474789d6e6df1b2b921df84c27db80fe02ba
gccrs: proc_macro: Remode function indirection

There was no need to register a function when the value could be
registered directly.

gcc/rust/ChangeLog:

* expand/rust-proc-macro.cc (available): Remove function.
(load_macros_array): There was no need for an indirection here.

libgrust/ChangeLog:

* libproc_macro/proc_macro.cc (not_available): Remove
function.
* libproc_macro/proc_macro.h (not_available): Remove
function prototype.
* libproc_macro/registration.h: Change symbol type.
* libproc_macro/bridge.h: New file.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/expand/rust-proc-macro.cc
libgrust/libproc_macro/bridge.h [new file with mode: 0644]
libgrust/libproc_macro/proc_macro.cc
libgrust/libproc_macro/proc_macro.h
libgrust/libproc_macro/registration.h