aboutsummaryrefslogtreecommitdiffstats
path: root/src/ortho/gcc/ortho-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ortho/gcc/ortho-lang.c')
-rw-r--r--src/ortho/gcc/ortho-lang.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ortho/gcc/ortho-lang.c b/src/ortho/gcc/ortho-lang.c
index b4fdbe388..fc86d799f 100644
--- a/src/ortho/gcc/ortho-lang.c
+++ b/src/ortho/gcc/ortho-lang.c
@@ -1376,7 +1376,6 @@ finish_array_aggr (struct o_array_aggr_list *list, tree *res)
*res = build_constructor (list->atype, list->elts);
}
-
tree
new_union_aggr (tree atype, tree field, tree value)
{
@@ -1388,6 +1387,12 @@ new_union_aggr (tree atype, tree field, tree value)
}
tree
+new_default_value (tree atype)
+{
+ return build_constructor (atype, NULL);
+}
+
+tree
new_indexed_element (tree arr, tree index)
{
ortho_mark_addressable (arr);