mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-25 23:45:36 +00:00
Move Value adjustment to applyFixup. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306178 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d8b65f712
commit
374592322d
@ -126,14 +126,13 @@ void AMDGPUAsmBackend::processFixupValue(const MCAssembler &Asm,
|
|||||||
IsResolved = true;
|
IsResolved = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
if (IsResolved)
|
|
||||||
Value = adjustFixupValue(Fixup, Value, &Asm.getContext());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
void AMDGPUAsmBackend::applyFixup(const MCAssembler &Asm, const MCFixup &Fixup,
|
||||||
const MCValue &Target,
|
const MCValue &Target,
|
||||||
MutableArrayRef<char> Data, uint64_t Value,
|
MutableArrayRef<char> Data, uint64_t Value,
|
||||||
bool IsPCRel, MCContext &Ctx) const {
|
bool IsPCRel, MCContext &Ctx) const {
|
||||||
|
Value = adjustFixupValue(Fixup, Value, &Asm.getContext());
|
||||||
if (!Value)
|
if (!Value)
|
||||||
return; // Doesn't change encoding.
|
return; // Doesn't change encoding.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user