[llvm] Fix support for native types.
[mono.git] / mono / mini / ssapre.c
index ea817c58f03ec97eef1bacf09bf10ed2857df19b..a6499d13d5f7e6a25506cc88f26287c7480ff48f 100644 (file)
 #include <string.h>
 #include <stdio.h>
 #include <math.h>
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#endif
 
 #include <mono/metadata/debug-helpers.h>
 #include <mono/metadata/opcodes.h>
 
 #include "config.h"
 
-#ifndef DISABLE_SSA
-#include "inssel.h"
-
 #include "ssapre.h"
 
+/* Disable for now to save space since it is not yet ported to linear IR */
+#if 0
+
+#ifndef DISABLE_SSA
+
 /* Logging conditions */
 #define DUMP_LEVEL (4)
 #define TRACE_LEVEL (3)
@@ -653,7 +658,7 @@ check_ssapre_expression_name (MonoSsapreWorkArea *area, MonoSsapreExpressionDesc
                return TRUE;
        }
        if (mono_ssapre_expression_name == NULL) {
-               mono_ssapre_expression_name = getenv ("MONO_SSAPRE_EXPRESSION_NAME");
+               mono_ssapre_expression_name = g_getenv ("MONO_SSAPRE_EXPRESSION_NAME");
        }
        if (mono_ssapre_expression_name != NULL) {
                GString *expression_name = g_string_new_len ("", 256);
@@ -2053,7 +2058,7 @@ static char*
 mono_ssapre_method_name = NULL;
 static gboolean check_ssapre_method_name (MonoCompile *cfg) {
        if (mono_ssapre_method_name == NULL) {
-               mono_ssapre_method_name = getenv ("MONO_SSAPRE_METHOD_NAME");
+               mono_ssapre_method_name = g_getenv ("MONO_SSAPRE_METHOD_NAME");
        }
        if (mono_ssapre_method_name != NULL) {
                char *method_name = mono_method_full_name (cfg->method, TRUE);
@@ -2154,3 +2159,11 @@ mono_perform_ssapre (MonoCompile *cfg) {
 
 #endif /* DISABLE_SSA */
 
+#else /* 0 */
+
+void
+mono_perform_ssapre (MonoCompile *cfg)
+{
+}
+
+#endif /* 0 */