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));
|
builder.append(compileDeclaration(d));
|
||||||
}
|
}
|
||||||
|
|
||||||
return builder.toString()
|
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
+ builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String generateLabel() {
|
private String generateLabel() {
|
||||||
|
|
|
@ -15,8 +15,8 @@ public class CodegenImpl implements Codegen {
|
||||||
builder.append(compileDeclaration(d));
|
builder.append(compileDeclaration(d));
|
||||||
}
|
}
|
||||||
|
|
||||||
return builder.toString()
|
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
+ builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String generateLabel() {
|
private String generateLabel() {
|
||||||
|
|
|
@ -15,8 +15,8 @@ public class CodegenImpl implements Codegen {
|
||||||
builder.append(compileDeclaration(d));
|
builder.append(compileDeclaration(d));
|
||||||
}
|
}
|
||||||
|
|
||||||
return builder.toString()
|
return "call " + String.format("%s_%d\n", main.id, main.numOfArgs)
|
||||||
+ "call " + String.format("%s_%d\n", main.id, main.numOfArgs);
|
+ builder.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String generateLabel() {
|
private String generateLabel() {
|
||||||
|
|
Loading…
Reference in a new issue