summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/CCompilerPower64.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-05-12 08:29:40 +0200
committerGitHub <noreply@github.com>2025-05-12 08:29:40 +0200
commit1ddeab9a4426abd781a5066ba79af2ba64de11d9 (patch)
tree06155b0e26fcc2a9fc2d8e684155f82ded3d1552 /dev/LibCompiler/src/CCompilerPower64.cc
parent87979899ce833ca477bb563b84e3698224119dab (diff)
parent2be9a150bb742987330c6de4dac23d4d2efb1ebe (diff)
Merge pull request #5 from nekernel-org/dev
0.0.1e2
Diffstat (limited to 'dev/LibCompiler/src/CCompilerPower64.cc')
-rw-r--r--dev/LibCompiler/src/CCompilerPower64.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/dev/LibCompiler/src/CCompilerPower64.cc b/dev/LibCompiler/src/CCompilerPower64.cc
index c65f575..f2eba43 100644
--- a/dev/LibCompiler/src/CCompilerPower64.cc
+++ b/dev/LibCompiler/src/CCompilerPower64.cc
@@ -133,7 +133,7 @@ class CompilerFrontendPower64 final : public LibCompiler::ICompilerFrontend {
LIBCOMPILER_COPY_DEFAULT(CompilerFrontendPower64);
std::string Check(const char* text, const char* file);
- bool Compile(std::string text, const std::string file) override;
+ bool Compile(std::string text, std::string file) override;
const char* Language() override { return "POWER C"; }
};
@@ -173,7 +173,7 @@ union double_cast final {
/////////////////////////////////////////////////////////////////////////////////////////
-bool CompilerFrontendPower64::Compile(std::string text_, const std::string file) {
+bool CompilerFrontendPower64::Compile(std::string text_, std::string file) {
std::string text = text_;
bool typeFound = false;
@@ -1069,13 +1069,11 @@ class AssemblyMountpointCLang final ASSEMBLY_INTERFACE {
LIBCOMPILER_COPY_DEFAULT(AssemblyMountpointCLang);
- [[maybe_unused]] static Int32 Arch() noexcept {
+ [[maybe_unused]] Int32 Arch() noexcept override {
return LibCompiler::AssemblyFactory::kArchPowerPC;
}
Int32 CompileToFormat(std::string src, Int32 arch) override {
- if (arch != AssemblyMountpointCLang::Arch()) return 1;
-
if (kCompilerFrontend == nullptr) return 1;
/* @brief copy contents wihtout extension */