return 0 à la fin, suppression du typeFunction dans la symTable, Appeal renomé en Call

This commit is contained in:
Rochas
2025-04-29 23:25:07 +02:00
parent 7e9b49b08a
commit d238ac0887
9 changed files with 67 additions and 108 deletions

View File

@@ -128,7 +128,7 @@ TypeLLVMVisitor<String,String>
@Override
public String visitCallLLVM(CallLLVMImp instr, String h) {
String str = INDENT+ "call " + instr.str() + instr.f().type().accept(this, h) + " @"+instr.f().name() + "(";
String str = "call " + instr.str() + instr.f().type().accept(this, h) + " @"+instr.f().name() + "(";
for(int i = 0; i<instr.params().size(); i++){
str += instr.params().get(i).getType().accept(this, h) + " " + instr.params().get(i).accept(this,h);
if(i<instr.params().size()-1) str += ", ";