aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCExpr.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-04-06 00:12:44 -0700
committerFangrui Song <i@maskray.me>2025-04-06 00:12:45 -0700
commitc0b4a8edfe2349b912890951a49a32b6a27747af (patch)
tree6f7d2af70b7fee7c9cc0f2d05c91296f83c44f3e /llvm/lib/MC/MCExpr.cpp
parente7dc05ebcf50a620bc2307207bfd27620c6ca648 (diff)
downloadllvm-c0b4a8edfe2349b912890951a49a32b6a27747af.zip
llvm-c0b4a8edfe2349b912890951a49a32b6a27747af.tar.gz
llvm-c0b4a8edfe2349b912890951a49a32b6a27747af.tar.bz2
MCValue: Replace getRefKind with getSpecifier
Diffstat (limited to 'llvm/lib/MC/MCExpr.cpp')
-rw-r--r--llvm/lib/MC/MCExpr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCExpr.cpp b/llvm/lib/MC/MCExpr.cpp
index c856ef5..5293fa5 100644
--- a/llvm/lib/MC/MCExpr.cpp
+++ b/llvm/lib/MC/MCExpr.cpp
@@ -291,7 +291,7 @@ bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler *Asm,
// Value with RefKind (e.g. %hi(0xdeadbeef) in MIPS) is not considered
// absolute (the value is unknown at parse time), even if it might be resolved
// by evaluateFixup.
- return IsRelocatable && Value.isAbsolute() && Value.getRefKind() == 0;
+ return IsRelocatable && Value.isAbsolute() && Value.getSpecifier() == 0;
}
/// Helper method for \see EvaluateSymbolAdd().
@@ -533,7 +533,7 @@ bool MCExpr::evaluateAsRelocatableImpl(MCValue &Res, const MCAssembler *Asm,
// If the reference has a variant kind, we can only handle expressions
// which evaluate exactly to a single unadorned symbol. Attach the
// original VariantKind to SymA of the result.
- if (Res.getRefKind() != MCSymbolRefExpr::VK_None ||
+ if (Res.getSpecifier() != MCSymbolRefExpr::VK_None ||
!Res.getAddSym() || Res.getSubSym() || Res.getConstant())
return false;
Res.Specifier = Kind;