From 23d3e00324b7f691a893df7e73462b9b73c03a4f Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 4 May 2025 23:13:10 +0200 Subject: feat(cxxdrv): small optimizations regarding variable and useless logging. Signed-off-by: Amlal --- dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'dev/LibCompiler/src') diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 38b6ecf..f5e9bf7 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -774,17 +774,10 @@ class AssemblyCPlusPlusInterface final ASSEMBLY_INTERFACE { if (!kState.fOutputAssembly.good()) return kExitNO; - auto fmt = LibCompiler::current_date(); - - std::stringstream stream; - stream << kOrigin; - - std::string result(stream.str()); - kState.fOutputAssembly << "; Assembler Dialect: AMD64 LibCompiler Assembler. (Generated from C++)\n"; - kState.fOutputAssembly << "; Date: " << fmt << "\n" - << "#bits 64\n#org " + result << "\n"; + kState.fOutputAssembly << "; Date: " << LibCompiler::current_date() << "\n" + << "#bits 64\n#org " << kOrigin << "\n"; // =================================== // Parse source file. @@ -793,7 +786,6 @@ class AssemblyCPlusPlusInterface final ASSEMBLY_INTERFACE { std::string line_source; while (std::getline(src_fp, line_source)) { - kStdOut << line_source; kCompilerFrontend->Compile(line_source, src); } -- cgit v1.2.3