diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-09 07:44:45 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-10-09 07:44:45 -0400 |
commit | 1280836201150aa0097d7338459f6b142a962f82 (patch) | |
tree | 7eacacccd09b9a0247b6ab9ef421df7aafec7803 | |
parent | 9d200e59102c26233d40f99d0d5f5ddb8cc99572 (diff) |
Remove erroneous print_tree and gen_label in gen_statement
-rw-r--r-- | gen_code.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -222,10 +222,8 @@ ptree *t; switch (t->type){ case ASSIGNOP: if (t->l->ret_type == INT) { - gen_label(t->r); - print_tree(t); GEN_EXPR(t->r); - fprintf(stdout, "movq %s, %d(%%rbp)\n", *reg_ptr, + fprintf(stdout, "movq\t%s, %d(%%rbp)\n", *reg_ptr, - t->l->attr.nval->offset * OFFSET_SIZE); } else { yyerror(FLOAT_ERROR); |