浏览代码

keep interfaces in dce

Nicolas Cannasse 13 年之前
父节点
当前提交
a45eca3f20
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      typer.ml

+ 1 - 0
typer.ml

@@ -1986,6 +1986,7 @@ let dce_optimize ctx =
 		if c.cl_ordered_statics = [] && c.cl_ordered_fields = [] then
 			match c with
 			| { cl_extern = true }
+			| { cl_interface = true }
 			| { cl_path = ["flash";"_Boot"],"RealBoot" }
 				-> ()
 			| _ when has_meta ":?used" c.cl_meta || has_meta ":keep" c.cl_meta || (match c.cl_constructor with Some f -> has_meta ":?used" f.cf_meta | _ -> false)