Skip to content

Commit 0f97c1f

Browse files
philbertydkm
authored andcommitted
Add missing fn_once_output langitem
1 parent 8c799f1 commit 0f97c1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gcc/rust/util/rust-lang-item.h

+7
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ class RustLangItem
7575

7676
// functions
7777
FN_ONCE,
78+
FN_ONCE_OUTPUT,
7879

7980
UNKNOWN,
8081
};
@@ -225,6 +226,10 @@ class RustLangItem
225226
{
226227
return ItemType::FN_ONCE;
227228
}
229+
else if (item.compare ("fn_once_output") == 0)
230+
{
231+
return ItemType::FN_ONCE_OUTPUT;
232+
}
228233

229234
return ItemType::UNKNOWN;
230235
}
@@ -305,6 +310,8 @@ class RustLangItem
305310
return "const_slice_ptr";
306311
case FN_ONCE:
307312
return "fn_once";
313+
case FN_ONCE_OUTPUT:
314+
return "fn_once_output";
308315

309316
case UNKNOWN:
310317
return "<UNKNOWN>";

0 commit comments

Comments
 (0)