aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-09-08 11:23:51 +0200
committerPhilip Herron <philip.herron@embecosm.com>2023-10-31 11:39:08 +0000
commitc5dc4b0a5f4773c05ca4e8845df9b5cdeb978fc6 (patch)
tree772621680c64269c62b0b4251b5d2844f8ef4f65
parent573ca06d2a88c4cc27598c2f8597d8316f3fa418 (diff)
downloadgcc-c5dc4b0a5f4773c05ca4e8845df9b5cdeb978fc6.zip
gcc-c5dc4b0a5f4773c05ca4e8845df9b5cdeb978fc6.tar.gz
gcc-c5dc4b0a5f4773c05ca4e8845df9b5cdeb978fc6.tar.bz2
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>
-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;