fixed bugs brought out by merging
This commit is contained in:
@@ -74,8 +74,8 @@ int main(int argc, char **argv) {
|
||||
SysYIRGenerator generator;
|
||||
generator.visitCompUnit(moduleAST);
|
||||
if (argStopAfter == "ir") {
|
||||
auto module = generator.get();
|
||||
module->print(cout);
|
||||
// auto module = generator.get();
|
||||
// module->print(cout);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,6 @@ int main(int argc, char **argv) {
|
||||
auto module = generator.get();
|
||||
sysy::RISCv32CodeGen codegen(module);
|
||||
string asmCode = codegen.code_gen();
|
||||
cout << asmCode << endl;
|
||||
if (argStopAfter == "asm") {
|
||||
cout << asmCode << endl;
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user