From 7723e863c034d809cc49a01ad1cc301741006a08 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 6 Jun 2025 05:59:39 +0200 Subject: refactor: Rename CompilerFrontendCPlusPlus to CompilerFrontendCPlusPlusAMD64. Signed-off-by: Amlal El Mahrouss --- .../src/Frontend/CompilerCPlusPlusAMD64.cc | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'dev/LibCompiler/src') diff --git a/dev/LibCompiler/src/Frontend/CompilerCPlusPlusAMD64.cc b/dev/LibCompiler/src/Frontend/CompilerCPlusPlusAMD64.cc index df9035d..f16fbaa 100644 --- a/dev/LibCompiler/src/Frontend/CompilerCPlusPlusAMD64.cc +++ b/dev/LibCompiler/src/Frontend/CompilerCPlusPlusAMD64.cc @@ -14,8 +14,6 @@ #define kExitOK (EXIT_SUCCESS) #define kExitNO (EXIT_FAILURE) -// extern_segment, @autodelete { ... }, fn foo() -> auto { ... } - #include #include #include @@ -23,7 +21,7 @@ /* NeKernel C++ Compiler Driver */ /* This is part of the LibCompiler. */ -/* (c) Amlal El Mahrouss */ +/* (c) Amlal El Mahrouss 2024-2025 */ /// @author EL Mahrouss Amlal (amlal@nekernel.org) /// @file CPlusPlusCompilerAMD64.cxx @@ -118,12 +116,12 @@ static Boolean kInBraces = false; static size_t kBracesCount = 0UL; /* @brief C++ compiler backend for the NeKernel C++ driver */ -class CompilerFrontendCPlusPlus final LC_COMPILER_FRONTEND { +class CompilerFrontendCPlusPlusAMD64 final LC_COMPILER_FRONTEND { public: - explicit CompilerFrontendCPlusPlus() = default; - ~CompilerFrontendCPlusPlus() override = default; + explicit CompilerFrontendCPlusPlusAMD64() = default; + ~CompilerFrontendCPlusPlusAMD64() override = default; - LIBCOMPILER_COPY_DEFAULT(CompilerFrontendCPlusPlus); + LIBCOMPILER_COPY_DEFAULT(CompilerFrontendCPlusPlusAMD64); LibCompiler::SyntaxLeafList::SyntaxLeaf Compile(const LibCompiler::STLString text, LibCompiler::STLString file) override; @@ -133,7 +131,7 @@ class CompilerFrontendCPlusPlus final LC_COMPILER_FRONTEND { /// @internal compiler variables -static CompilerFrontendCPlusPlus* kCompilerFrontend = nullptr; +static CompilerFrontendCPlusPlusAMD64* kCompilerFrontend = nullptr; static std::vector kRegisterMap; @@ -151,7 +149,7 @@ static std::size_t kFunctionEmbedLevel = 0UL; /// detail namespaces -const char* CompilerFrontendCPlusPlus::Language() { +const char* CompilerFrontendCPlusPlusAMD64::Language() { return "AMD64 C++"; } @@ -165,7 +163,7 @@ static std::vector> kOriginMap ///////////////////////////////////////////////////////////////////////////////////////// -LibCompiler::SyntaxLeafList::SyntaxLeaf CompilerFrontendCPlusPlus::Compile( +LibCompiler::SyntaxLeafList::SyntaxLeaf CompilerFrontendCPlusPlusAMD64::Compile( LibCompiler::STLString text, LibCompiler::STLString file) { LibCompiler::SyntaxLeafList::SyntaxLeaf syntax_tree; @@ -817,7 +815,7 @@ LIBCOMPILER_MODULE(CompilerCPlusPlusAMD64) { kErrorLimit = 0; - kCompilerFrontend = new CompilerFrontendCPlusPlus(); + kCompilerFrontend = new CompilerFrontendCPlusPlusAMD64(); kFactory.Mount(new AssemblyCPlusPlusInterface()); LibCompiler::install_signal(SIGSEGV, Detail::drvi_crash_handler); -- cgit v1.2.3