From f6b400b80efc64b918c03352e93ec9de4e2369a1 Mon Sep 17 00:00:00 2001 From: Amlal Date: Fri, 25 Apr 2025 19:21:22 +0200 Subject: dev, general: codebase needed refactors and tweaks, for NeKernel's 0.0.2 release. details: - things needed to be cleared off, short sighted decisions fixed. - the inconsistency of certain files have been fixed too. Signed-off-by: Amlal --- dev/LibCompiler/src/AssemblerPower.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'dev/LibCompiler/src/AssemblerPower.cc') diff --git a/dev/LibCompiler/src/AssemblerPower.cc b/dev/LibCompiler/src/AssemblerPower.cc index 30b6d68..d3b3b6d 100644 --- a/dev/LibCompiler/src/AssemblerPower.cc +++ b/dev/LibCompiler/src/AssemblerPower.cc @@ -18,7 +18,7 @@ #define __ASM_NEED_PPC__ 1 #include -#include +#include #include #include #include @@ -28,6 +28,7 @@ #include #include #include +#include ///////////////////// @@ -46,18 +47,12 @@ constexpr auto cPowerIPAlignment = 0x4U; static CharType kOutputArch = LibCompiler::kPefArchPowerPC; -static Boolean kOutputAsBinary = false; - -static UInt32 kErrorLimit = 10; -static UInt32 kAcceptableErrors = 0; static std::size_t kCounter = 1UL; static std::uintptr_t kOrigin = kPefBaseOrigin; static std::vector> kOriginLabel; -static bool kVerbose = false; - static std::vector kBytes; static LibCompiler::AERecordHeader kCurrentRecord{ @@ -72,9 +67,6 @@ static const std::string kRelocSymbol = ":RuntimeSymbol:"; // \brief forward decl. static bool asm_read_attributes(std::string& line); -/// Do not move it on top! it uses the assembler detail namespace! -#include - ///////////////////////////////////////////////////////////////////////////////////////// /// @brief POWER assembler entrypoint, the program/module starts here. -- cgit v1.2.3