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/Make-lang.in | |
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/Make-lang.in')
-rw-r--r-- | gcc/rust/Make-lang.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.in index d3cbe27..1cba946 100644 --- a/gcc/rust/Make-lang.in +++ b/gcc/rust/Make-lang.in @@ -169,6 +169,7 @@ GRS_OBJS = \ rust/rust-compile-intrinsic.o \ rust/rust-compile-pattern.o \ rust/rust-compile-fnparam.o \ + rust/rust-compile-proc-macro.o \ rust/rust-base62.o \ rust/rust-compile-item.o \ rust/rust-compile-implitem.o \ |