diff options
Diffstat (limited to 'dev/LibCompiler/src')
| -rw-r--r-- | dev/LibCompiler/src/CCompilerPower64.cc | 4 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/DynamicLinkerELF.cc | 2 | ||||
| -rw-r--r-- | dev/LibCompiler/src/DynamicLinkerPEF.cc | 6 |
5 files changed, 7 insertions, 9 deletions
diff --git a/dev/LibCompiler/src/CCompilerPower64.cc b/dev/LibCompiler/src/CCompilerPower64.cc index a4a6793..02c1ee3 100644 --- a/dev/LibCompiler/src/CCompilerPower64.cc +++ b/dev/LibCompiler/src/CCompilerPower64.cc @@ -388,7 +388,7 @@ bool CompilerFrontendPower64::Compile(std::string text_, const std::string file) "r10, r11"; syntax_leaf.fUserValue += "\n\tbeq extern_segment " + kIfFunction + - " \ndword public_segment .code64 " + kIfFunction + "\n"; + " \ndword public_segment .code64 " + kIfFunction + "\n"; kState.fSyntaxTree->fLeafList.push_back(syntax_leaf); @@ -759,7 +759,7 @@ bool CompilerFrontendPower64::Compile(std::string text_, const std::string file) syntax_leaf.fUserValue.clear(); } - auto syntax_leaf = LibCompiler::SyntaxLeafList::SyntaxLeaf(); + auto syntax_leaf = LibCompiler::SyntaxLeafList::SyntaxLeaf(); syntax_leaf.fUserValue = "\n"; kState.fSyntaxTree->fLeafList.push_back(syntax_leaf); diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc index 580e646..6705db4 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc @@ -810,7 +810,7 @@ Boolean CompilerFrontendCPlusPlus::Compile(std::string text, syntax_tree.fUserValue = "__LIBCOMPILER_LOCAL_RETURN_STRING: db " + subText + ", 0\nmov rcx, __LIBCOMPILER_LOCAL_RETURN_STRING\n"; syntax_tree.fUserValue += "mov rax, rcx\nret\n"; kOrigin += 1UL; - + break; } diff --git a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc index 6ef2797..3aa07d5 100644 --- a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc +++ b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc @@ -924,7 +924,7 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain) Detail::bpp_macro macro_unreachable; - macro_unreachable.fName = "__unreachable"; + macro_unreachable.fName = "__unreachable"; macro_unreachable.fValue = "__libcompiler_unreachable"; kMacros.push_back(macro_unreachable); diff --git a/dev/LibCompiler/src/DynamicLinkerELF.cc b/dev/LibCompiler/src/DynamicLinkerELF.cc index dca7efb..6645219 100644 --- a/dev/LibCompiler/src/DynamicLinkerELF.cc +++ b/dev/LibCompiler/src/DynamicLinkerELF.cc @@ -55,7 +55,7 @@ namespace Detail { struct DynamicLinkerBlob final { - std::vector<CharType> mBlob{}; // ELF code/bss/data blob. + std::vector<CharType> mBlob{}; // ELF code/bss/data blob. UIntPtr mOffset{0UL}; // the offset of the ELF container header... }; } // namespace Detail diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc index 084e94f..4a7bb49 100644 --- a/dev/LibCompiler/src/DynamicLinkerPEF.cc +++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc @@ -58,7 +58,7 @@ namespace Detail { struct DynamicLinkerBlob final { - std::vector<CharType> mBlob{}; // PEF code/bss/data blob. + std::vector<CharType> mBlob{}; // PEF code/bss/data blob. UIntPtr mOffset{0UL}; // the offset of the PEF container header... }; } // namespace Detail @@ -218,9 +218,7 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF) kStdOut << "no output filename set." << std::endl; return LIBCOMPILER_EXEC_ERROR; } - - // sanity check. - if (kObjectList.empty()) + else if (kObjectList.empty()) { kStdOut << "no input files." << std::endl; return LIBCOMPILER_EXEC_ERROR; |
