1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Use the right relocation type for X86::MOV64ri64i32

llvm-svn: 75687
This commit is contained in:
Bruno Cardoso Lopes 2009-07-14 21:46:40 +00:00
parent fe2d3828e9
commit 9aadad68e3

View File

@ -636,6 +636,8 @@ void Emitter<CodeEmitter>::emitInstruction(
else {
unsigned rt = Is64BitMode ? X86::reloc_pcrel_word
: (IsPIC ? X86::reloc_picrel_word : X86::reloc_absolute_word);
if (Opcode == X86::MOV64ri64i32)
rt = X86::reloc_absolute_word; // FIXME: add X86II flag?
// This should not occur on Darwin for relocatable objects.
if (Opcode == X86::MOV64ri)
rt = X86::reloc_absolute_dword; // FIXME: add X86II flag?