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>
This commit is contained in:
parent
4a2bd83825
commit
d1e2f3dfbb
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue