diff options
author | Fangrui Song <i@maskray.me> | 2025-03-15 16:10:18 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-03-15 16:10:19 -0700 |
commit | 7722d7519ca2679e105e2db68c889b3727938c8d (patch) | |
tree | c74da07a0330b957c4d682aed7da6787610a1a1c /llvm/lib/MC/MCAssembler.cpp | |
parent | ff2ed154a8a9ea52adb3667833fe6fddd27b0487 (diff) | |
download | llvm-7722d7519ca2679e105e2db68c889b3727938c8d.zip llvm-7722d7519ca2679e105e2db68c889b3727938c8d.tar.gz llvm-7722d7519ca2679e105e2db68c889b3727938c8d.tar.bz2 |
[MC] evaluateAsRelocatableImpl: remove the Fixup argument
Follow-up to d6fbffa23c84e622735b3e880fd800985c1c0072 . This commit
updates all call sites and removes the argument from the function.
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 3e5e015..70921f9 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -119,7 +119,7 @@ bool MCAssembler::isThumbFunc(const MCSymbol *Symbol) const { const MCExpr *Expr = Symbol->getVariableValue(); MCValue V; - if (!Expr->evaluateAsRelocatable(V, nullptr, nullptr)) + if (!Expr->evaluateAsRelocatable(V, nullptr)) return false; if (V.getSymB() || V.getRefKind() != MCSymbolRefExpr::VK_None) @@ -155,7 +155,7 @@ bool MCAssembler::evaluateFixup(const MCFixup &Fixup, const MCFragment *DF, MCContext &Ctx = getContext(); Value = 0; WasForced = false; - if (!Expr->evaluateAsRelocatable(Target, this, &Fixup)) { + if (!Expr->evaluateAsRelocatable(Target, this)) { Ctx.reportError(Fixup.getLoc(), "expected relocatable expression"); return true; } |