Fix program entrypoint not generating correctly
This commit is contained in:
parent
8d5879bb51
commit
d2a3c50935
3 changed files with 6 additions and 6 deletions
|
@ -15,8 +15,8 @@ public class CodegenImpl implements Codegen {
|
|||
builder.append(compileDeclaration(d));
|
||||
}
|
||||
|
||||
return builder.toString()
|
||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
||||
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||
+ builder.toString();
|
||||
}
|
||||
|
||||
private String generateLabel() {
|
||||
|
|
|
@ -15,8 +15,8 @@ public class CodegenImpl implements Codegen {
|
|||
builder.append(compileDeclaration(d));
|
||||
}
|
||||
|
||||
return builder.toString()
|
||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
||||
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||
+ builder.toString();
|
||||
}
|
||||
|
||||
private String generateLabel() {
|
||||
|
|
|
@ -15,8 +15,8 @@ public class CodegenImpl implements Codegen {
|
|||
builder.append(compileDeclaration(d));
|
||||
}
|
||||
|
||||
return builder.toString()
|
||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
||||
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||
+ builder.toString();
|
||||
}
|
||||
|
||||
private String generateLabel() {
|
||||
|
|
Loading…
Reference in a new issue