summaryrefslogtreecommitdiff
path: root/disasm.cpp
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-20 13:15:29 +0300
committerOxore <oxore@protonmail.com>2023-05-20 13:15:29 +0300
commit935f386f61b63267bd6516a1888cf939b8eef238 (patch)
tree06a3035d555b955bc62397564c65e87a2acea41f /disasm.cpp
parentbb15aa39feebd658181068104a7c57b5a122a70f (diff)
Make more `reloc` to `ref` renaming
Diffstat (limited to 'disasm.cpp')
-rw-r--r--disasm.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/disasm.cpp b/disasm.cpp
index ab1c91e..e5ec421 100644
--- a/disasm.cpp
+++ b/disasm.cpp
@@ -1769,7 +1769,7 @@ int Arg::SNPrint(
case ArgType::kLong:
{
const char c = type == ArgType::kLong ? 'l' : 'w';
- if (ref_kinds & kRelocAbsMask) {
+ if (ref_kinds & kRefAbsMask) {
if (static_cast<uint32_t>(lword) == ref_addr) {
return snprintf(buf, bufsz, ".L%08x:%c", ref_addr, c);
} else {
@@ -1782,7 +1782,7 @@ int Arg::SNPrint(
}
}
case ArgType::kD16PCAddr:
- if (ref_kinds & kRelocRelMask) {
+ if (ref_kinds & kRefRelMask) {
if (static_cast<uint32_t>(self_addr + d16_pc.d16 + kInstructionSizeStepBytes) == ref_addr) {
return snprintf(buf, bufsz, "%%pc@(.L%08x:w)", ref_addr);
} else {
@@ -1805,7 +1805,7 @@ int Arg::SNPrint(
case ArgType::kRegMaskPredecrement:
return snprint_reg_mask(buf, bufsz, uword, type);
case ArgType::kDisplacement:
- if (ref_kinds & kRelocRelMask) {
+ if (ref_kinds & kRefRelMask) {
if (static_cast<uint32_t>(self_addr + lword) == ref_addr) {
return snprintf(buf, bufsz, ".L%08x", ref_addr);
} else {