-g sets opts.g and -debug causes blocks to be labeled

This commit is contained in:
Wolfgang Bumiller 2012-12-20 16:04:10 +01:00
parent b02c4e4d10
commit 4ef0e8c66e
2 changed files with 2 additions and 1 deletions

2
ast.c
View file

@ -1049,7 +1049,7 @@ const char* ast_function_label(ast_function *self, const char *prefix)
size_t len;
char *from;
if (!opts.dump && !opts.dumpfin)
if (!opts.dump && !opts.dumpfin && !opts.debug)
return NULL;
id = (self->labelcount++);

1
main.c
View file

@ -266,6 +266,7 @@ static bool options_parse(int argc, char **argv) {
/* debug turns on -flno */
case 'g':
opts_setflag("LNO", true);
opts.g = true;
break;
case 'D':