mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[AArch64] Delete unneeded fixup_aarch64_ldr_pcrel_imm19 VK_GOT special case
An AArch64 VK_GOT fixup must have a symbol. MCAssembler::evaluateFixup considers such a fixup not resolved. The code path cannot trigger.
This commit is contained in:
parent
bb0b21b662
commit
7d66664724
@ -491,13 +491,6 @@ bool AArch64AsmBackend::shouldForceRelocation(const MCAssembler &Asm,
|
||||
if (Kind == AArch64::fixup_aarch64_pcrel_adrp_imm21)
|
||||
return true;
|
||||
|
||||
AArch64MCExpr::VariantKind RefKind =
|
||||
static_cast<AArch64MCExpr::VariantKind>(Target.getRefKind());
|
||||
AArch64MCExpr::VariantKind SymLoc = AArch64MCExpr::getSymbolLoc(RefKind);
|
||||
// LDR GOT relocations need a relocation
|
||||
if (Kind == AArch64::fixup_aarch64_ldr_pcrel_imm19 &&
|
||||
SymLoc == AArch64MCExpr::VK_GOT)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user