Support procedures returning values

This commit is contained in:
2025-01-18 21:30:11 +01:00
parent a79def50e5
commit 7b36a3803f
10 changed files with 217 additions and 73 deletions

View File

@ -40,10 +40,18 @@ namespace gcc
{
return "pointer";
}
else if (is_array_type(type))
else if (TREE_CODE(type) == ARRAY_TYPE)
{
return "array";
}
else if (TREE_CODE(type) == RECORD_TYPE)
{
return "record";
}
else if (TREE_CODE(type) == UNION_TYPE)
{
return "union";
}
else
{
return "<<unknown-type>>";