From: Pierre-Emmanuel Patry Date: Fri, 8 Sep 2023 09:23:51 +0000 (+0200) Subject: gccrs: Add getters for proc macro mappings X-Git-Tag: basepoints/gcc-15~2041 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1e2f3dfbb643e45b2f6ad10fda231533b306417;p=thirdparty%2Fgcc.git gccrs: Add getters for proc macro mappings Add three different getters, one for each proc macro type. gcc/rust/ChangeLog: * backend/rust-compile-context.h: Add getters. Signed-off-by: Pierre-Emmanuel Patry --- diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h index 79e3457f1103..36a36e79f680 100644 --- a/gcc/rust/backend/rust-compile-context.h +++ b/gcc/rust/backend/rust-compile-context.h @@ -376,6 +376,16 @@ public: custom_derive_macros.push_back (macro); } + const std::vector &get_bang_proc_macros () const { return bang_macros; } + const std::vector &get_attribute_proc_macros () const + { + return attribute_macros; + } + const std::vector &get_derive_proc_macros () const + { + return custom_derive_macros; + } + private: Resolver::Resolver *resolver; Resolver::TypeCheckContext *tyctx;