Prechádzať zdrojové kódy

get rid of some unknown analyzer options

Simon Krajewski 9 rokov pred
rodič
commit
457ff18536

+ 0 - 1
std/cpp/ConstPointer.hx

@@ -22,7 +22,6 @@
  package cpp;
 
 @:coreType @:include("cpp/Pointer.h") @:native("cpp.Pointer")
-@:analyzer(no_simplification)
 extern class ConstPointer<T>
 {
    // ptr actually returns the pointer - not strictly a 'T' - for pointers to smart pointers

+ 0 - 1
std/cpp/Function.hx

@@ -22,7 +22,6 @@
  package cpp;
 
 @:coreType @:structAccess @:include("cpp/Pointer.h")
-@:analyzer(no_simplification)
 extern class Function<T,ABI:cpp.abi.Abi>
 {
    public function new(d:Dynamic);

+ 0 - 1
std/cpp/Lib.hx

@@ -43,7 +43,6 @@ class Lib {
 		return untyped __global__.__hxcpp_unload_all_libraries();
 	}
 
-   @:analyzer(no_simplification)
 	public static function _loadPrime( lib : String, prim : String, signature : String, quietFail = false ) : Dynamic {
 		var factory:Callable< ConstCharStar -> Object > =
                untyped __global__.__hxcpp_cast_get_proc_address(lib, prim + "__prime", quietFail);

+ 0 - 1
std/cpp/Pointer.hx

@@ -22,7 +22,6 @@
  package cpp;
 
 @:coreType
-@:analyzer(no_simplification)
 extern class Pointer<T> extends ConstPointer<T> implements ArrayAccess<T>
 {
    @:analyzer(no_simplification)

+ 1 - 2
std/cpp/Prime.hx

@@ -32,7 +32,6 @@ class Prime {
 
    #if (!macro && cpp)
 
-   @:analyzer(no_simplification)
 	public static function _loadPrime( lib : String, prim : String, signature : String, quietFail = false ) : Dynamic {
 		var factory:Callable< ConstCharStar -> Object > =
                untyped __global__.__hxcpp_cast_get_proc_address(lib, prim + "__prime", quietFail);
@@ -76,7 +75,7 @@ class Prime {
       #if neko
       var init = neko.Lib.load(inModuleName, "neko_init", 5);
 
-      if (init != null) 
+      if (init != null)
       {
          init( function(s) return new String(s),
                function(len:Int) { var r = []; if (len > 0) r[len - 1] = null; return r; },

+ 0 - 1
std/python/Syntax.hx

@@ -28,7 +28,6 @@ import haxe.macro.ExprTools;
 #end
 
 @:noPackageRestrict
-@:analyzer(no_simplification)
 extern class Syntax {
 
 	#if macro

+ 1 - 1
tests/optimization/src/TestJs.hx

@@ -73,7 +73,7 @@ class TestJs {
 	}
 
 	@:js("var a = { v : [{ b : 1}]};a;a.v.length == 1 && a.v[0].b == 1;")
-	@:analyzer(no_const_propagation, no_local_dce, no_check_has_effect)
+	@:analyzer(no_const_propagation, no_local_dce)
 	static function testDeepMatchingWithoutClosures() {
 		var a = {v: [{b: 1}]};
 		a;

+ 1 - 1
tests/optimization/src/issues/Issue3713.hx

@@ -22,7 +22,7 @@ class Issue3713 {
 		var b = BImpl._new();
 		var c_x = 1;
 	')
-	@:analyzer(no_const_propagation, no_local_dce, no_check_has_effect)
+	@:analyzer(no_const_propagation, no_local_dce)
 	static function test() {
         var b = new B<Int>();
         var c = b.f();