diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-17 16:50:34 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-10-19 19:32:47 +0100 |
commit | a28e7dcb463c16db545566218cff3c164c410959 (patch) | |
tree | 25ef6e8d063e64df2d82e721d5f8647c45fc275e | |
parent | 3cedc655c2928707612da663211c0802a8ec9319 (diff) | |
download | gcc-a28e7dcb463c16db545566218cff3c164c410959.zip gcc-a28e7dcb463c16db545566218cff3c164c410959.tar.gz gcc-a28e7dcb463c16db545566218cff3c164c410959.tar.bz2 |
Add missing fn_once_output langitem
-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 a50f139..111a867 100644 --- a/gcc/rust/util/rust-lang-item.h +++ b/gcc/rust/util/rust-lang-item.h @@ -75,6 +75,7 @@ public: // functions FN_ONCE, + FN_ONCE_OUTPUT, UNKNOWN, }; @@ -225,6 +226,10 @@ public: { return ItemType::FN_ONCE; } + else if (item.compare ("fn_once_output") == 0) + { + return ItemType::FN_ONCE_OUTPUT; + } return ItemType::UNKNOWN; } @@ -305,6 +310,8 @@ public: return "const_slice_ptr"; case FN_ONCE: return "fn_once"; + case FN_ONCE_OUTPUT: + return "fn_once_output"; case UNKNOWN: return "<UNKNOWN>"; |