aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index c4bb817..acfb360 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<tree> &get_bang_proc_macros () const { return bang_macros; }
+ const std::vector<tree> &get_attribute_proc_macros () const
+ {
+ return attribute_macros;
+ }
+ const std::vector<CustomDeriveInfo> &get_derive_proc_macros () const
+ {
+ return custom_derive_macros;
+ }
+
private:
Resolver::Resolver *resolver;
Resolver::TypeCheckContext *tyctx;