]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: resolve: Add extern crate proc macro collection
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Fri, 16 Jun 2023 16:17:39 +0000 (18:17 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:58 +0000 (18:55 +0100)
commit4d5f20fdbf095663ce829b42a22819093f4efc8e
tree11c801319e99e9636e83241550cec5650c38e239
parent37451ad09f7edc081700909208f90b9eea1eb592
gccrs: resolve: Add extern crate proc macro collection

Create a mapping for procedural macros with their crate num.

gcc/rust/ChangeLog:

* metadata/rust-extern-crate.h: Add proc macro getter.
* rust-session-manager.cc (Session::load_extern_crate): Collect
mappings and create mappings.
* util/rust-hir-map.cc: Add insertion and lookup functions for
every mapping.
* util/rust-hir-map.h: Add function prototypes.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/metadata/rust-extern-crate.h
gcc/rust/rust-session-manager.cc
gcc/rust/util/rust-hir-map.cc
gcc/rust/util/rust-hir-map.h