diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-17 16:00:30 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:09:34 +0100 |
commit | 0f04ac6eecd1214fe7403945874e125f92d58d9c (patch) | |
tree | 0b980d91a8d897f5001d25f0114e8c0733b1925c /gcc/rust/backend/rust-compile-base.cc | |
parent | 068bdc3c6141833d533fd99234578c86658c0576 (diff) | |
download | gcc-0f04ac6eecd1214fe7403945874e125f92d58d9c.zip gcc-0f04ac6eecd1214fe7403945874e125f92d58d9c.tar.gz gcc-0f04ac6eecd1214fe7403945874e125f92d58d9c.tar.bz2 |
gccrs: Move proc macro builders to their own file
The code to build the required procedural macro symbols is rather long
and could be placed in it's own file.
gcc/rust/ChangeLog:
* Make-lang.in: Add gcc/rust/backend/rust-compile-proc-macro.cc to the
list of file to compile.
* backend/rust-compile.cc (attribute_array): Move to
rust-compile-proc-macro.cc
(derive_proc_macro): Likewise.
(bang_proc_macro): Likewise.
(attribute_proc_macro): Likewise.
(proc_macro_payload): Likewise.
(proc_macro): Likewise.
(proc_macro_buffer): Likewise.
(entrypoint): Likewise.
(proc_macro_array): Likewise.
(CompileCrate::add_proc_macro_symbols): Likewise.
* backend/rust-compile-proc-macro.cc: New file.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.cc')
0 files changed, 0 insertions, 0 deletions