+2009-05-06 Zoltan Varga <vargaz@gmail.com>
+
+ * mini-llvm.c (mono_llvm_emit_method): Update the OP_TLS_GET implementation
+ to the latest LLVM code.
+
2009-05-05 Zoltan Varga <vargaz@gmail.com>
* genmdesc.pl (load_opcodes): Fix this after the TARGET_... changes.
case OP_TLS_GET: {
#if defined(TARGET_AMD64) || defined(TARGET_X86)
#ifdef TARGET_AMD64
- // 255 == FS segment register
- LLVMTypeRef ptrtype = LLVMPointerType (IntPtrType (), 255);
+ // 257 == FS segment register
+ LLVMTypeRef ptrtype = LLVMPointerType (IntPtrType (), 257);
#else
// 256 == GS segment register
LLVMTypeRef ptrtype = LLVMPointerType (IntPtrType (), 256);
LLVM_FAILURE (ctx, "opcode tls-get");
#endif
- /* This depends on uncomitted patches to LLVM */
- LLVM_FAILURE (ctx, "opcode tls-get");
break;
}