From bfc8cefdd562dac537bb188c1fdbb6aa43c70a95 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Fri, 14 May 2021 02:30:13 +0200 Subject: [PATCH] Lab: Remove unnecessary call target --- lab/cfg/cfg.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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;