From 2fd3475239d4258ca4407ffb2c0720d90d711d6c Mon Sep 17 00:00:00 2001 From: Amlal Date: Mon, 27 Jan 2025 02:11:12 +0100 Subject: ADD: `dbg` C++ debugger program. META: Ran format command with correct C++ extensions. Signed-off-by: Amlal --- dev/LibCompiler/src/AssemblerARM64.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'dev/LibCompiler/src/AssemblerARM64.cc') diff --git a/dev/LibCompiler/src/AssemblerARM64.cc b/dev/LibCompiler/src/AssemblerARM64.cc index 6dfb8e5..637bbdf 100644 --- a/dev/LibCompiler/src/AssemblerARM64.cc +++ b/dev/LibCompiler/src/AssemblerARM64.cc @@ -64,7 +64,7 @@ static LibCompiler::AERecordHeader kCurrentRecord{ .fName = "", .fKind = LibCompiler::kPefCode, .fSize = 0, .fOffset = 0}; static std::vector kRecords; -static std::vector kUndefinedSymbols; +static std::vector kUndefinedSymbols; static const std::string kUndefinedSymbol = ":UndefinedSymbol:"; static const std::string kRelocSymbol = ":RuntimeSymbol:"; @@ -318,7 +318,7 @@ static bool asm_read_attributes(std::string& line) if (kOutputAsBinary) { Detail::print_error("Invalid extern_segment directive in flat binary mode.", - "LibCompiler"); + "LibCompiler"); throw std::runtime_error("invalid_extern_segment_bin"); } @@ -390,7 +390,7 @@ static bool asm_read_attributes(std::string& line) if (kOutputAsBinary) { Detail::print_error("Invalid public_segment directive in flat binary mode.", - "LibCompiler"); + "LibCompiler"); throw std::runtime_error("invalid_public_segment_bin"); } @@ -485,8 +485,8 @@ namespace Detail::algorithm ///////////////////////////////////////////////////////////////////////////////////////// -std::string LibCompiler::EncoderARM64::CheckLine(std::string& line, - const std::string& file) +std::string LibCompiler::EncoderARM64::CheckLine(std::string& line, + const std::string& file) { std::string err_str; @@ -571,7 +571,7 @@ std::string LibCompiler::EncoderARM64::CheckLine(std::string& line, } bool LibCompiler::EncoderARM64::WriteNumber(const std::size_t& pos, - std::string& jump_label) + std::string& jump_label) { if (!isdigit(jump_label[pos])) return false; @@ -696,8 +696,8 @@ bool LibCompiler::EncoderARM64::WriteNumber(const std::size_t& pos, ///////////////////////////////////////////////////////////////////////////////////////// -bool LibCompiler::EncoderARM64::WriteLine(std::string& line, - const std::string& file) +bool LibCompiler::EncoderARM64::WriteLine(std::string& line, + const std::string& file) { if (LibCompiler::find_word(line, "public_segment")) return false; @@ -705,7 +705,6 @@ bool LibCompiler::EncoderARM64::WriteLine(std::string& line, if (!Detail::algorithm::is_valid_arm64(line)) return false; - return true; } -- cgit v1.2.3