summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-05-04 23:13:10 +0200
committerAmlal <amlal@nekernel.org>2025-05-04 23:13:10 +0200
commit23d3e00324b7f691a893df7e73462b9b73c03a4f (patch)
tree9f2a1f51e2184a4053814fb909c358f3c807b12f /dev/LibCompiler/src
parentdf8979d962f74ba8a30fcd4d72ba5652ceb73dfd (diff)
feat(cxxdrv): small optimizations regarding variable and useless logging.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src')
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc12
1 files changed, 2 insertions, 10 deletions
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);
}