]> gcc.gnu.org Git - gcc.git/commit
gccrs: Add utility function to build proc macro types
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Fri, 15 Sep 2023 09:08:13 +0000 (11:08 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:32 +0000 (19:09 +0100)
commit150403984d818895e40629ea7c5369f32f96fc1c
tree702c49cdd9fda14ff768bb643b96326c5c5451f2
parentd1e2f3dfbb643e45b2f6ad10fda231533b306417
gccrs: Add utility function to build proc macro types

Add some utility function to build proc macro entrypoint related types.
Those functions will help generate all required metadata in order for
proc macros to be expanded properly.

gcc/rust/ChangeLog:

* backend/rust-compile.cc (build_attribute_array): Add a function to
build the attribute array type.
(build_derive_proc_macro): Add a function to build the derive proc
macro type.
(build_bang_proc_macro): Add a function to build the bang proc macro
type.
(build_attribute_proc_macro): Add a function to build the attribute
proc macro type.
(build_proc_macro): Add a function to build the proc macro tagged union
type.
(build_proc_macro_buffer): Add a function to build the proc macro
buffer type.
(build_entrypoint): Add a function to build the proc macro entrypoint
type.
* backend/rust-compile.h: Add function prototype.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile.cc
gcc/rust/backend/rust-compile.h
This page took 0.055295 seconds and 6 git commands to generate.