Lab: Remove unnecessary call target
This commit is contained in:
parent
e5bfabc3fc
commit
bfc8cefdd5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user