Selaa lähdekoodia

still no DCE at all for AS3

Nicolas Cannasse 13 vuotta sitten
vanhempi
commit
e7636431af
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      main.ml

+ 1 - 1
main.ml

@@ -1044,7 +1044,7 @@ try
 		Codegen.post_process_end();
 		List.iter (fun f -> f()) (List.rev com.filters);
 		List.iter (Codegen.save_class_state tctx) com.types;
-		Dce.run com main (!full_dce && not !interp);
+		if not !gen_as3 then Dce.run com main (!full_dce && not !interp);
 		let type_filters = [
 			Codegen.check_private_path;
 			Codegen.remove_generic_base;