diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-08-29 14:42:02 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:34 +0100 |
commit | 8a343bd46fb454a1f5dfb47fdb6cf5599ce070ba (patch) | |
tree | fcfed486840a1c23d7686bc82927345d6c967317 /gcc/rust/util/rust-mapping-common.h | |
parent | 346ccc0f0a8e2b916e33ac69f7f14bf5b7c1c8ad (diff) | |
download | gcc-8a343bd46fb454a1f5dfb47fdb6cf5599ce070ba.zip gcc-8a343bd46fb454a1f5dfb47fdb6cf5599ce070ba.tar.gz gcc-8a343bd46fb454a1f5dfb47fdb6cf5599ce070ba.tar.bz2 |
gccrs: Use optional for proc macro invocation lookup
The old interface for those mappings was clunky at best. Now we can use
the optional structure to return a reference to the instance.
gcc/rust/ChangeLog:
* expand/rust-macro-expand.h (struct MacroExpander): Update
lookup function prototypes.
* util/rust-hir-map.cc (Mappings::lookup_derive_proc_macro_invocation):
Update lookup function according to new signature.
(Mappings::lookup_bang_proc_macro_invocation): Likewise.
(Mappings::lookup_attribute_proc_macro_invocation): Likewise.
* util/rust-hir-map.h: Update function prototypes.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/util/rust-mapping-common.h')
0 files changed, 0 insertions, 0 deletions