mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Fix what I believe is a copy-n-pasto introduced in r78129.
- Bruno, please check!! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80728 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e8d5fe510
commit
6b677b33c0
@ -340,18 +340,18 @@ void Emitter<CodeEmitter>::emitDisplacementField(const MachineOperand *RelocOp,
|
||||
} else if (RelocOp->isSymbol()) {
|
||||
unsigned rt = Is64BitMode ?
|
||||
(IsPCRel ? X86::reloc_pcrel_word : X86::reloc_absolute_word_sext)
|
||||
: (IsPCRel ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
emitExternalSymbolAddress(RelocOp->getSymbolName(), rt);
|
||||
} else if (RelocOp->isCPI()) {
|
||||
unsigned rt = Is64BitMode ?
|
||||
(IsPCRel ? X86::reloc_pcrel_word : X86::reloc_absolute_word_sext)
|
||||
: (IsPCRel ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
emitConstPoolAddress(RelocOp->getIndex(), rt,
|
||||
RelocOp->getOffset(), Adj);
|
||||
} else if (RelocOp->isJTI()) {
|
||||
unsigned rt = Is64BitMode ?
|
||||
(IsPCRel ? X86::reloc_pcrel_word : X86::reloc_absolute_word_sext)
|
||||
: (IsPCRel ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
|
||||
emitJumpTableAddress(RelocOp->getIndex(), rt, Adj);
|
||||
} else {
|
||||
llvm_unreachable("Unknown value to relocate!");
|
||||
|
Loading…
Reference in New Issue
Block a user