mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 22:56:05 +00:00
[MC] Simplify isSymbolRefDifferenceFullyResolvedImpl overloads. NFC
The base implementation is simple. Just inline it.
This commit is contained in:
parent
2a6e32ea34
commit
bc6d925528
@ -1521,8 +1521,7 @@ bool ELFObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
|
||||
SymA.getType() == ELF::STT_GNU_IFUNC)
|
||||
return false;
|
||||
}
|
||||
return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, SymA, FB,
|
||||
InSet, IsPCRel);
|
||||
return &SymA.getSection() == FB.getParent();
|
||||
}
|
||||
|
||||
std::unique_ptr<MCObjectWriter>
|
||||
|
@ -1204,8 +1204,7 @@ bool WinCOFFObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
|
||||
uint16_t Type = cast<MCSymbolCOFF>(SymA).getType();
|
||||
if ((Type >> COFF::SCT_COMPLEX_TYPE_SHIFT) == COFF::IMAGE_SYM_DTYPE_FUNCTION)
|
||||
return false;
|
||||
return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, SymA, FB,
|
||||
InSet, IsPCRel);
|
||||
return &SymA.getSection() == FB.getParent();
|
||||
}
|
||||
|
||||
void WinCOFFObjectWriter::executePostLayoutBinding(MCAssembler &Asm,
|
||||
|
Loading…
x
Reference in New Issue
Block a user