TYPE_FUNCTION in ir_value_dump to show '(function)' rather than '(void)'

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-08-12 10:15:27 +02:00
parent 2cba6f08fe
commit 93d372f222

3
ir.c
View file

@ -2850,6 +2850,9 @@ void ir_value_dump(ir_value* v, int (*oprintf)(const char*, ...))
case TYPE_VOID:
oprintf("(void)");
break;
case TYPE_FUNCTION:
oprintf("(function)");
break;
case TYPE_FLOAT:
oprintf("%g", v->constval.vfloat);
break;