From 101c181c75140296af582594ef76ee9e416c953c Mon Sep 17 00:00:00 2001 From: ZhuangYumin Date: Tue, 22 Oct 2024 14:35:37 +0000 Subject: [PATCH] remove naivebackend support --- src/CMakeLists.txt | 4 ++-- src/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4fc1ffa..dc3d3a5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,10 +1,10 @@ add_subdirectory(ast) add_subdirectory(semantic) add_subdirectory(IR) -add_subdirectory(naivebackend) +# add_subdirectory(naivebackend) add_subdirectory(opt) add_executable(zmxcc main.cpp) -target_link_libraries(zmxcc semantic argparse IR naivebackend opt) +target_link_libraries(zmxcc semantic argparse IR opt) set_target_properties(zmxcc PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" ) \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index 9d77743..4db1328 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,7 +2,7 @@ #include #include #include "IR/IR.h" -#include "naivebackend/naivebackend.h" +// #include "naivebackend/naivebackend.h" #include "opt/opt.h" #include "semantic/semantic.h" @@ -43,7 +43,7 @@ int main(int argc, char **argv) { return 0; } if (!optimize_all) { - GenerateNaiveASM(fout, IR); + // GenerateNaiveASM(fout, IR); } else { // IR->RecursivePrint(std::cerr); auto IR_with_out_allocas = Mem2Reg(IR);