diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-12 12:25:52 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-10-12 12:34:39 +0100 |
commit | 63d901e48f0429d9d203ab56ed0038e6ebfc0b03 (patch) | |
tree | 6f9a3b713b87fb20319e7de04f10c0a9843b71a3 /gcc | |
parent | 3e7320510e7bb774295ecbd8089a9f51d6475959 (diff) | |
download | gcc-63d901e48f0429d9d203ab56ed0038e6ebfc0b03.zip gcc-63d901e48f0429d9d203ab56ed0038e6ebfc0b03.tar.gz gcc-63d901e48f0429d9d203ab56ed0038e6ebfc0b03.tar.bz2 |
Add mappings for fn_once lang item
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/util/rust-lang-item.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/rust/util/rust-lang-item.h b/gcc/rust/util/rust-lang-item.h index 9d1ee90..a50f139 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -73,6 +73,9 @@ public: MUT_PTR, CONST_SLICE_PTR, + // functions + FN_ONCE, + UNKNOWN, }; @@ -218,6 +221,10 @@ public: { return ItemType::CONST_SLICE_PTR; } + else if (item.compare ("fn_once") == 0) + { + return ItemType::FN_ONCE; + } return ItemType::UNKNOWN; } @@ -296,6 +303,8 @@ public: return "mut_ptr"; case CONST_SLICE_PTR: return "const_slice_ptr"; + case FN_ONCE: + return "fn_once"; case UNKNOWN: return "<UNKNOWN>"; |