From 1280836201150aa0097d7338459f6b142a962f82 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Wed, 9 Oct 2019 07:44:45 -0400 Subject: Remove erroneous print_tree and gen_label in gen_statement --- gen_code.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gen_code.c b/gen_code.c index 02c75aa..4be1a08 100644 --- a/gen_code.c +++ b/gen_code.c @@ -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); -- cgit v1.1