summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/Util
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-28 14:33:48 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-05-28 14:33:48 +0200
commit46badbe70a36bb3cb5d86bd9f33aa5481c9709b9 (patch)
tree33f3759845a25c51cea5d92177a3f7ebd269f984 /dev/LibCompiler/Util
parent0965112fb81ef3e04010197f68f743c98a7611ba (diff)
feat!: update the kernel codegen to output bit width and origin.
refactor!: refactor codebase, breaking changes. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/Util')
-rw-r--r--dev/LibCompiler/Util/AsmUtils.h (renamed from dev/LibCompiler/Util/LCAsmUtils.h)2
-rw-r--r--dev/LibCompiler/Util/CompilerUtils.h (renamed from dev/LibCompiler/Util/LCClUtils.h)1
-rw-r--r--dev/LibCompiler/Util/DylibHelpers.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/dev/LibCompiler/Util/LCAsmUtils.h b/dev/LibCompiler/Util/AsmUtils.h
index 7728444..f176eda 100644
--- a/dev/LibCompiler/Util/LCAsmUtils.h
+++ b/dev/LibCompiler/Util/AsmUtils.h
@@ -9,7 +9,7 @@
#include <LibCompiler/CodeGen.h>
#include <LibCompiler/Frontend.h>
-#include <LibCompiler/Util/LCClUtils.h>
+#include <LibCompiler/Util/CompilerUtils.h>
using namespace LibCompiler;
diff --git a/dev/LibCompiler/Util/LCClUtils.h b/dev/LibCompiler/Util/CompilerUtils.h
index 94a113c..19e247d 100644
--- a/dev/LibCompiler/Util/LCClUtils.h
+++ b/dev/LibCompiler/Util/CompilerUtils.h
@@ -77,7 +77,6 @@ inline void drvi_crash_handler(std::int32_t id) {
kStdOut << "ERRNO: " << errno << std::endl;
kStdOut << "ERRNO(STRING): " << strerror(errno) << std::endl;
-
switch (id) {
case SIGSEGV: {
kStdOut << "SIGNAL: Segmentation Fault." << kBlank << std::endl;
diff --git a/dev/LibCompiler/Util/DylibHelpers.h b/dev/LibCompiler/Util/DylibHelpers.h
index 71ca230..e61cf9c 100644
--- a/dev/LibCompiler/Util/DylibHelpers.h
+++ b/dev/LibCompiler/Util/DylibHelpers.h
@@ -9,5 +9,5 @@
#include <LibCompiler/Defines.h>
#include <dlfcn.h>
-typedef Int32(*LibCompilerEntrypoint)(Int32 argc, CharType const* argv[]);
+typedef Int32 (*LibCompilerEntrypoint)(Int32 argc, CharType const* argv[]);
typedef VoidPtr DylibHandle;