From 3d6ed0a5a95df92fc5ec36e038ccda53fed886ec Mon Sep 17 00:00:00 2001 From: lyc Date: Tue, 3 Dec 2024 00:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 2 +- src/TCG/BlockTranslator.cpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 6506e23..bbe5502 100644 --- a/main.cpp +++ b/main.cpp @@ -28,7 +28,7 @@ void init_log(const std::string& log_file_name, const std::string& log_path) { google::InitGoogleLogging(log_file_name.c_str()); google::SetLogDestination(google::GLOG_INFO, (log_path + "/").c_str()); google::InstallFailureSignalHandler(); // Capture signals - FLAGS_log_prefix = true; // Log prefixes + FLAGS_log_prefix = false; // Log prefixes FLAGS_colorlogtostderr = true; // Color logs in stderr FLAGS_alsologtostderr = true; // Log to console FLAGS_logbufsecs = 0; // Disable log buffering diff --git a/src/TCG/BlockTranslator.cpp b/src/TCG/BlockTranslator.cpp index d7fa80f..227bd98 100644 --- a/src/TCG/BlockTranslator.cpp +++ b/src/TCG/BlockTranslator.cpp @@ -45,10 +45,11 @@ ASMBlock BlockTranslator::BlockTranslate(SymbolManager& SymbolManager_, std::sha for (int i = 0; i < TACBlock_->size(); i++) { LOG(INFO) << std::left << std::setw(20) << std::setfill(' ') << (*TACBlock_)[i].to_string() - << (*TACBlock_)[i].src1.use_info << "\t" - << (*TACBlock_)[i].src2.use_info << "\t" - << (*TACBlock_)[i].dst.use_info << "\t" - << "scope " << (*TACBlock_)[i].scope; + // << (*TACBlock_)[i].src1.use_info << "\t" + // << (*TACBlock_)[i].src2.use_info << "\t" + // << (*TACBlock_)[i].dst.use_info << "\t" + // << "scope " << (*TACBlock_)[i].scope + ; // 更新 SymbolManager 的 scope 和 待用信息 SymbolManager_.set_scope((*TACBlock_)[i].scope); if ((*TACBlock_)[i].src1.OperType == TACOPERANDTYPE::VAR) {