]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Add containers for proc macro collection mappings
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Wed, 6 Sep 2023 12:34:45 +0000 (14:34 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:31 +0000 (19:09 +0100)
commitf915a3fe9027a8eececd16425d890480bfec2fe7
tree2a2856407e495ba121c1f73e6122e31325dc852a
parent2d2fa103e125685f44e41f5500a6a2e98ffd91fb
gccrs: Add containers for proc macro collection mappings

Add one container for each kind of procedural macro mapping. Also add a
new structure to gather informations required for derive procedural
macros. Add different functions to fill those new containers.

gcc/rust/ChangeLog:

* backend/rust-compile-context.h (struct CustomDeriveInfo): Add
new derive procedural macro metadata information holder for
mappings.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile-context.h