]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
make ast_function_label also work when -dumpfin is used instead of -dump
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 21 Nov 2012 20:59:25 +0000 (21:59 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 21 Nov 2012 20:59:25 +0000 (21:59 +0100)
ast.c
ir.c

diff --git a/ast.c b/ast.c
index 7d7443f882300c2eb5eecea99190f017fdaf5461..907a944d02f747bd8c00439be2ee1a654b9c6757 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -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++);
diff --git a/ir.c b/ir.c
index c1e116ad80811553ea8430207073af2c9d3cc5e1..e0eee379b032c9f77f51e114f2ba8326c44f5c93 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -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;