Skip to content

Commit

Permalink
Add missing fn_once_output langitem
Browse files Browse the repository at this point in the history
  • Loading branch information
philberty authored and CohenArthur committed Jan 16, 2023
1 parent c9c5f2b commit ae35bc3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcc/rust/util/rust-lang-item.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class RustLangItem

// functions
FN_ONCE,
FN_ONCE_OUTPUT,

UNKNOWN,
};
Expand Down Expand Up @@ -225,6 +226,10 @@ class RustLangItem
{
return ItemType::FN_ONCE;
}
else if (item.compare ("fn_once_output") == 0)
{
return ItemType::FN_ONCE_OUTPUT;
}

return ItemType::UNKNOWN;
}
Expand Down Expand Up @@ -305,6 +310,8 @@ class RustLangItem
return "const_slice_ptr";
case FN_ONCE:
return "fn_once";
case FN_ONCE_OUTPUT:
return "fn_once_output";

case UNKNOWN:
return "<UNKNOWN>";
Expand Down

0 comments on commit ae35bc3

Please sign in to comment.