aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-08 11:23:51 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:32 +0100
commitd1e2f3dfbb643e45b2f6ad10fda231533b306417 (patch)
tree0d418f73eb035d54f69648a1412136e1d3acfa86 /gcc
parent4a2bd8382529db95b37c216f5abe96aa752b34a1 (diff)
downloadgcc-d1e2f3dfbb643e45b2f6ad10fda231533b306417.zip
gcc-d1e2f3dfbb643e45b2f6ad10fda231533b306417.tar.gz
gcc-d1e2f3dfbb643e45b2f6ad10fda231533b306417.tar.bz2
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 <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-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 79e3457..36a36e7 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;