summaryrefslogtreecommitdiffhomepage
path: root/dev/LibCompiler/src/AssemblerPower.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/AssemblerPower.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/AssemblerPower.cc')
-rw-r--r--dev/LibCompiler/src/AssemblerPower.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/dev/LibCompiler/src/AssemblerPower.cc b/dev/LibCompiler/src/AssemblerPower.cc
index 1e45b19..9f11ae1 100644
--- a/dev/LibCompiler/src/AssemblerPower.cc
+++ b/dev/LibCompiler/src/AssemblerPower.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");
}
@@ -486,7 +486,7 @@ namespace Detail::algorithm
/////////////////////////////////////////////////////////////////////////////////////////
std::string LibCompiler::EncoderPowerPC::CheckLine(std::string& line,
- const std::string& file)
+ const std::string& file)
{
std::string err_str;
@@ -617,7 +617,7 @@ std::string LibCompiler::EncoderPowerPC::CheckLine(std::string& line,
}
bool LibCompiler::EncoderPowerPC::WriteNumber(const std::size_t& pos,
- std::string& jump_label)
+ std::string& jump_label)
{
if (!isdigit(jump_label[pos]))
return false;
@@ -743,7 +743,7 @@ bool LibCompiler::EncoderPowerPC::WriteNumber(const std::size_t& pos,
/////////////////////////////////////////////////////////////////////////////////////////
bool LibCompiler::EncoderPowerPC::WriteLine(std::string& line,
- const std::string& file)
+ const std::string& file)
{
if (LibCompiler::find_word(line, "public_segment"))
return false;
@@ -833,7 +833,7 @@ bool LibCompiler::EncoderPowerPC::WriteLine(std::string& line,
if (reg_index > kAsmRegisterLimit)
{
Detail::print_error("invalid register index, r" + reg_str,
- file);
+ file);
throw std::runtime_error("invalid_register_index");
}
@@ -859,7 +859,7 @@ bool LibCompiler::EncoderPowerPC::WriteLine(std::string& line,
if (num.number[i] > 0)
{
Detail::print_warning("number overflow on li operation.",
- file);
+ file);
break;
}
}