Replace lit feature keyword 'not_COFF' with 'uses_COFF'.
authorPaul Robinson <paul.robinson@sony.com>
Tue, 14 May 2019 14:51:54 +0000 (14:51 +0000)
committerPaul Robinson <paul.robinson@sony.com>
Tue, 14 May 2019 14:51:54 +0000 (14:51 +0000)
Differential Revision: https://reviews.llvm.org/D61791

llvm-svn: 360680

llvm/test/ExecutionEngine/MCJIT/weak-function.ll
llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll
llvm/test/lit.cfg.py

index 843fb4ab3c11a0a4a0459d058fc6e30d60c7491d..e0e01a816e2f243d26dcdd3624dd2ff2ece61d37 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s
-; REQUIRES: not_COFF
+; UNSUPPORTED: uses_COFF
 ;
 ; Check that functions in two different modules agree on the address of weak
 ; function 'baz'
index a367ce6a6bae0ac86a609184706984b6033793e7..75ad2c7cfb2c696a85cea719263635577f1670f6 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: lli -jit-kind=orc-mcjit -extra-module %p/Inputs/weak-function-2.ll %s
-; REQUIRES: not_COFF
+; UNSUPPORTED: uses_COFF
 ;
 ; Check that functions in two different modules agree on the address of weak
 ; function 'baz'.
index a67bd6527a501d75ac5629af0be2f559835bf6db..5a4b1e8579e011435186c1a5a082f1251c62f52d 100644 (file)
@@ -179,10 +179,12 @@ if (config.host_ldflags.find("-m32") < 0
 
 config.available_features.add("host-byteorder-" + sys.byteorder + "-endian")
 
-# Others/can-execute.txt
-if sys.platform not in ['win32']:
+if sys.platform in ['win32']:
+    # ExecutionEngine, no weak symbols in COFF.
+    config.available_features.add('uses_COFF')
+else:
+    # Others/can-execute.txt
     config.available_features.add('can-execute')
-    config.available_features.add('not_COFF')
 
 # Loadable module
 # FIXME: This should be supplied by Makefile or autoconf.