aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util/rust-hir-map.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-02-11 12:15:39 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-02-11 12:15:39 +0800
commit7d4ed9d38c7a636408a262f70aa69d2a34e2169d (patch)
tree915c10b77703d0ef8d074775ddea95eb0f728cab /gcc/rust/util/rust-hir-map.cc
parentcfd1d805ff5921480d9badd7d215e1b1deb33aca (diff)
parent0c7d0135663b6f0d94e0ffd931366ba2b32f8b2c (diff)
downloadgcc-7d4ed9d38c7a636408a262f70aa69d2a34e2169d.zip
gcc-7d4ed9d38c7a636408a262f70aa69d2a34e2169d.tar.gz
gcc-7d4ed9d38c7a636408a262f70aa69d2a34e2169d.tar.bz2
Merge branch 'master' of https://github.com/redbrain/gccrs
Diffstat (limited to 'gcc/rust/util/rust-hir-map.cc')
-rw-r--r--gcc/rust/util/rust-hir-map.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-hir-map.cc b/gcc/rust/util/rust-hir-map.cc
index 8a15631..4a1d4f7 100644
--- a/gcc/rust/util/rust-hir-map.cc
+++ b/gcc/rust/util/rust-hir-map.cc
@@ -460,6 +460,12 @@ Mappings::walk_local_defids_for_crate (CrateNum crateNum,
}
}
+void
+Mappings::insert_node_to_hir (CrateNum crate, NodeId id, HirId ref)
+{
+ nodeIdToHirMappings[crate][id] = ref;
+}
+
bool
Mappings::lookup_node_to_hir (CrateNum crate, NodeId id, HirId *ref)
{