summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-06-06 05:59:39 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-06-06 05:59:39 +0200
commit7723e863c034d809cc49a01ad1cc301741006a08 (patch)
treef78931d3d6501ff097558e5e901d59eed51da0e9 /dev
parent9e8b5d3b7c7c8f25803e77dc3c3da3f1732f6226 (diff)
refactor: Rename CompilerFrontendCPlusPlus to CompilerFrontendCPlusPlusAMD64.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev')
-rw-r--r--dev/LibCompiler/src/Frontend/CompilerCPlusPlusAMD64.cc20
1 files changed, 9 insertions, 11 deletions
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 <LibCompiler/Backend/X64.h>
#include <LibCompiler/Frontend.h>
#include <LibCompiler/UUID.h>
@@ -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<LibCompiler::STLString> 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<std::pair<LibCompiler::STLString, std::uintptr_t>> 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);