Fix DISABLE_JIT for unstripped builds.
[mono.git] / mono / mini / mini.c
index 25f1c59b2bd6a56f40c658b508575f0ad39f0cda..a65f7f16af41b04f925d81ceda1a2574a47a1dcc 100644 (file)
@@ -976,6 +976,8 @@ mini_type_to_stind (MonoCompile* cfg, MonoType *type)
        return mono_type_to_stind (type);
 }
 
+#ifndef DISABLE_JIT
+
 int
 mono_op_imm_to_op (int opcode)
 {
@@ -1106,6 +1108,8 @@ mono_decompose_op_imm (MonoCompile *cfg, MonoBasicBlock *bb, MonoInst *ins)
        bb->max_vreg = MAX (bb->max_vreg, cfg->next_vreg);
 }
 
+#endif
+
 static void
 set_vreg_to_inst (MonoCompile *cfg, int vreg, MonoInst *inst)
 {
@@ -3438,8 +3442,6 @@ mono_compile_create_vars (MonoCompile *cfg)
        mono_arch_create_vars (cfg);
 }
 
-#endif /* #ifndef DISABLE_JIT */
-
 void
 mono_print_code (MonoCompile *cfg, const char* msg)
 {
@@ -3449,8 +3451,6 @@ mono_print_code (MonoCompile *cfg, const char* msg)
                mono_print_bb (bb, msg);
 }
 
-#ifndef DISABLE_JIT
-
 static void
 mono_postprocess_patches (MonoCompile *cfg)
 {