summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/AssemblerARM64.cc
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-01-27 02:11:12 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-01-27 02:11:12 +0100
commit2fd3475239d4258ca4407ffb2c0720d90d711d6c (patch)
treef56bbe4a03196ff41d197a617c263dbb13658ef4 /dev/LibCompiler/src/AssemblerARM64.cc
parent2b2ac6e8c5dd2b3234b74d38833066dcd483267b (diff)
ADD: `dbg` C++ debugger program.
META: Ran format command with correct C++ extensions. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibCompiler/src/AssemblerARM64.cc')
-rw-r--r--dev/LibCompiler/src/AssemblerARM64.cc17
1 files changed, 8 insertions, 9 deletions
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<LibCompiler::AERecordHeader> kRecords;
-static std::vector<std::string> kUndefinedSymbols;
+static std::vector<std::string> 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;
}