- Fix X86-64 JIT by temporarily disabling code that treats GV address as 32-bit
immediate in small code model. The JIT cannot ensure GV's are placed in the
lower 4G.
- Some preliminary support for large code model.
llvm-svn: 32215
diff --git a/llvm/lib/Target/X86/X86Relocations.h b/llvm/lib/Target/X86/X86Relocations.h
index bc1efabc..3dd2b24 100644
--- a/llvm/lib/Target/X86/X86Relocations.h
+++ b/llvm/lib/Target/X86/X86Relocations.h
@@ -23,9 +23,10 @@
// the value already in memory, after we adjust it for where the PC is.
reloc_pcrel_word = 0,
- // reloc_absolute_word - Absolute relocation, just add the relocated value
- // to the value already in memory.
- reloc_absolute_word = 1
+ // reloc_absolute_word, reloc_absolute_dword - Absolute relocation, just
+ // add the relocated value to the value already in memory.
+ reloc_absolute_word = 1,
+ reloc_absolute_dword = 2
};
}
}