[backend] fixed bugs

This commit is contained in:
Lixuanwang
2025-06-24 00:42:14 +08:00
parent ac7569d890
commit 942cb32976

View File

@@ -96,13 +96,5 @@ int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
// generate assembly
auto module = generator.get();
sysy::RISCv32CodeGen codegen(module);
string asmCode = codegen.code_gen();
if (argStopAfter == "asm") {
cout << asmCode << endl;
return EXIT_SUCCESS;
}
return EXIT_SUCCESS;
}