-
- Downloads
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>
Showing
- gcc/rust/expand/rust-proc-macro.cc 1 addition, 7 deletionsgcc/rust/expand/rust-proc-macro.cc
- libgrust/libproc_macro/bridge.h 35 additions, 0 deletionslibgrust/libproc_macro/bridge.h
- libgrust/libproc_macro/proc_macro.cc 5 additions, 9 deletionslibgrust/libproc_macro/proc_macro.cc
- libgrust/libproc_macro/proc_macro.h 0 additions, 3 deletionslibgrust/libproc_macro/proc_macro.h
- libgrust/libproc_macro/registration.h 3 additions, 3 deletionslibgrust/libproc_macro/registration.h
Loading
Please register or sign in to comment