diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-06-01 16:50:28 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-06-01 16:50:28 +0100 |
commit | fc6f6a7179d3015f4e658e4b6bda2098796cd2c7 (patch) | |
tree | 7ad220f2c443b5599993345e49f19ad62e1e6b1b | |
parent | 7a94948e65db2fef6fd93c94e70ead168b71513d (diff) | |
download | gcc-fc6f6a7179d3015f4e658e4b6bda2098796cd2c7.zip gcc-fc6f6a7179d3015f4e658e4b6bda2098796cd2c7.tar.gz gcc-fc6f6a7179d3015f4e658e4b6bda2098796cd2c7.tar.bz2 |
Add mappings for mut_ptr lang item
-rw-r--r-- | gcc/rust/util/rust-lang-item.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index 5f5d435..9d1ee90 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -70,6 +70,7 @@ public: // https://github.com/rust-lang/rust/blob/master/library/core/src/ptr/const_ptr.rs CONST_PTR, + MUT_PTR, CONST_SLICE_PTR, UNKNOWN, @@ -209,6 +210,10 @@ public: { return ItemType::CONST_PTR; } + else if (item.compare ("mut_ptr") == 0) + { + return ItemType::MUT_PTR; + } else if (item.compare ("const_slice_ptr") == 0) { return ItemType::CONST_SLICE_PTR; @@ -287,6 +292,8 @@ public: return "RangeToInclusive"; case CONST_PTR: return "const_ptr"; + case MUT_PTR: + return "mut_ptr"; case CONST_SLICE_PTR: return "const_slice_ptr"; |