gccrs: mappings: Add MacroInvocation -> MacroRulesDef mappings
authorArthur Cohen <arthur.cohen@embecosm.com>
Tue, 11 Oct 2022 09:38:55 +0000 (11:38 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 21 Feb 2023 11:36:33 +0000 (12:36 +0100)
commita08f265625e525fa937dd6bc59f37da122df9f82
treefd7a0bb9e6df851429bcca7c77f785add3f1cf7b
parent570415e75c42a6346724859d12f38ec3faa9edd8
gccrs: mappings: Add MacroInvocation -> MacroRulesDef mappings

gcc/rust/ChangeLog:

* util/rust-hir-map.h: Add new mappings.
* util/rust-hir-map.cc (Mappings::insert_macro_invocation): Add insertion
function into mappings.
(Mappings::lookup_macro_invocation): Add lookup function for mappings.
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h