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:
Daniel Dunbar 2009-09-01 22:07:00 +00:00
parent 4e8d5fe510
commit 6b677b33c0

View File

@ -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!");