make ast_function_label also work when -dumpfin is used instead of -dump

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-21 21:59:25 +01:00
parent 6983142c4d
commit ba9217e576
2 changed files with 1 additions and 2 deletions

2
ast.c
View file

@ -940,7 +940,7 @@ const char* ast_function_label(ast_function *self, const char *prefix)
size_t len;
char *from;
if (!opts_dump)
if (!opts_dump && !opts_dumpfin)
return NULL;
id = (self->labelcount++);

1
ir.c
View file

@ -542,7 +542,6 @@ bool ir_function_finalize(ir_function *self)
if (!ir_function_calculate_liferanges(self))
return false;
if (!ir_function_allocate_locals(self))
return false;
return true;