Commit bfc8cefd authored by Alexander Hirsch's avatar Alexander Hirsch
Browse files

Lab: Remove unnecessary call target

parent e5bfabc3
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment