diff options
author | Philip Herron <philip.herron@embecosm.com> | 2021-02-10 15:47:14 +0000 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-02-10 18:10:57 +0000 |
commit | 06c9fd97bf3d86a08eadcadb1bc59cb392116d16 (patch) | |
tree | a74de9189504af72dff442103b5a323c7a74b48b /gcc/rust/util/rust-hir-map.h | |
parent | f10e695fc508c472c77e968e644f710806f82f54 (diff) | |
download | gcc-06c9fd97bf3d86a08eadcadb1bc59cb392116d16.zip gcc-06c9fd97bf3d86a08eadcadb1bc59cb392116d16.tar.gz gcc-06c9fd97bf3d86a08eadcadb1bc59cb392116d16.tar.bz2 |
Support LoopLabels and break to label.
This allows for the Rust refernece example for loop labels to be compiled.
Fixes #107
Diffstat (limited to 'gcc/rust/util/rust-hir-map.h')
-rw-r--r-- | gcc/rust/util/rust-hir-map.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-hir-map.h b/gcc/rust/util/rust-hir-map.h index 0d625f6..b7dbd45 100644 --- a/gcc/rust/util/rust-hir-map.h +++ b/gcc/rust/util/rust-hir-map.h @@ -136,6 +136,7 @@ public: void walk_local_defids_for_crate (CrateNum crateNum, std::function<bool (HIR::Item *)> cb); + void insert_node_to_hir (CrateNum crate, NodeId id, HirId ref); bool lookup_node_to_hir (CrateNum crate, NodeId id, HirId *ref); void insert_location (CrateNum crate, HirId id, Location locus); |