mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Move isFixupKindX86PCRel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
92bf6684f6
commit
cebdc01d66
@ -57,21 +57,21 @@ static void SetBinding(MCSymbolData &SD, unsigned Binding) {
|
||||
SD.setFlags(OtherFlags | (Binding << ELF_STB_Shift));
|
||||
}
|
||||
|
||||
static bool isFixupKindX86PCRel(unsigned Kind) {
|
||||
switch (Kind) {
|
||||
default:
|
||||
return false;
|
||||
case X86::reloc_pcrel_1byte:
|
||||
case X86::reloc_pcrel_4byte:
|
||||
case X86::reloc_riprel_4byte:
|
||||
case X86::reloc_riprel_4byte_movq_load:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
class ELFObjectWriterImpl {
|
||||
static bool isFixupKindX86PCRel(unsigned Kind) {
|
||||
switch (Kind) {
|
||||
default:
|
||||
return false;
|
||||
case X86::reloc_pcrel_1byte:
|
||||
case X86::reloc_pcrel_4byte:
|
||||
case X86::reloc_riprel_4byte:
|
||||
case X86::reloc_riprel_4byte_movq_load:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/*static bool isFixupKindX86RIPRel(unsigned Kind) {
|
||||
return Kind == X86::reloc_riprel_4byte ||
|
||||
Kind == X86::reloc_riprel_4byte_movq_load;
|
||||
|
Loading…
x
Reference in New Issue
Block a user