Fixed exception and removed scripts
This commit is contained in:
@@ -149,10 +149,13 @@ string StatementReturn::toString(int indent) {
|
||||
string value;
|
||||
for (int ind=0; ind<indent; ind++)
|
||||
value += " ";
|
||||
value += "RETURN:\n";
|
||||
for (int ind=0; ind<indent+1; ind++)
|
||||
value += " ";
|
||||
value += expression->toString(indent+1);
|
||||
value += "RETURN";
|
||||
if (expression != nullptr) {
|
||||
value += ":\n";
|
||||
for (int ind=0; ind<indent+1; ind++)
|
||||
value += " ";
|
||||
value += expression->toString(indent+1);
|
||||
}
|
||||
value += "\n";
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -80,8 +80,8 @@ int main(int argc, char **argv) {
|
||||
module->print(llvm::outs(), nullptr);
|
||||
}
|
||||
|
||||
//CodeGenerator codeGenerator(module);
|
||||
//codeGenerator.generateObjectFile(outputKind);
|
||||
CodeGenerator codeGenerator(module);
|
||||
codeGenerator.generateObjectFile(outputKind);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user