summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bevarargs.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2017-01-23 13:04:09 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2017-01-24 08:38:26 +0100
commit7125ea59cf7b5458c000389fdfcd163f59b922ba (patch)
tree51231a71bd6862e575ff51921b484ea54db2cd96 /ir/be/bevarargs.c
parentdc9ff7195b786f8a26425b70770233772701f2c0 (diff)
be: Factor out code to set the va_list type to a void pointer.
Diffstat (limited to 'ir/be/bevarargs.c')
-rw-r--r--ir/be/bevarargs.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/bevarargs.c b/ir/be/bevarargs.c
index d73a43e..c212ec5 100644
--- a/ir/be/bevarargs.c
+++ b/ir/be/bevarargs.c
@@ -66,3 +66,8 @@ void be_default_lower_va_arg_compound_val(ir_node *const node)
{
be_default_lower_va_arg(node, false);
}
+
+void be_set_va_list_type_pointer(backend_params *const p)
+{
+ p->vararg.va_list_type = new_type_pointer(get_type_for_mode(mode_ANY));
+}