diff --git a/lab/cfg/cfg.c b/lab/cfg/cfg.c index 5ad7df9..cb0f40a 100644 --- a/lab/cfg/cfg.c +++ b/lab/cfg/cfg.c @@ -68,10 +68,7 @@ struct tac_function { struct tac_instruction { enum tac_instruction_op op; - uint64_t label; - const char *function; - struct tac_instruction *next; }; @@ -124,7 +121,7 @@ struct tac_function example_function() append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_PUSH}); append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_PUSH}); append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_PUSH}); - append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_CALL, .function = "fun"}); + append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_CALL}); append_instruction(&function, (struct tac_instruction){.op = TAC_INSTRUCTION_OP_RETURN}); return function;