[io-layer] Extract socket (#4241)
[mono.git] / mono / mini / ir-emit.h
index ba9d6531367042081ba87410847ee375d5302d00..522438da5b06d3cf9168208ca95f5ed579144006 100644 (file)
@@ -75,6 +75,12 @@ alloc_ireg_mp (MonoCompile *cfg)
        return vreg;
 }
 
+static inline guint32
+alloc_xreg (MonoCompile *cfg)
+{
+       return alloc_ireg (cfg);
+}
+
 static inline guint32
 alloc_dreg (MonoCompile *cfg, MonoStackType stack_type)
 {
@@ -303,15 +309,6 @@ alloc_dreg (MonoCompile *cfg, MonoStackType stack_type)
 
 #define NEW_LDTOKENCONST(cfg,dest,image,token,generic_context) NEW_AOTCONST_TOKEN ((cfg), (dest), MONO_PATCH_INFO_LDTOKEN, (image), (token), (generic_context), STACK_PTR, NULL)
 
-#define NEW_TLS_OFFSETCONST(cfg,dest,key) do { \
-       if (cfg->compile_aot) { \
-               NEW_AOTCONST ((cfg), (dest), MONO_PATCH_INFO_TLS_OFFSET, GINT_TO_POINTER (key)); \
-       } else {                                                                                                                        \
-               int _offset = mini_get_tls_offset ((key));                                                      \
-               NEW_PCONST ((cfg), (dest), GINT_TO_POINTER (_offset)); \
-               } \
-       } while (0)
-
 #define NEW_DECLSECCONST(cfg,dest,image,entry) do { \
                if (cfg->compile_aot) { \
                        NEW_AOTCONST_TOKEN (cfg, dest, MONO_PATCH_INFO_DECLSEC, image, (entry).index, NULL, STACK_OBJ, NULL); \