llvm.org GIT mirror llvm / d5ab2f8
[ExecutionEngine] Disable weak symbol tests for COFF. COFF doesn't support weak linkage on functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278162 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 3 years ago
5 changed file(s) with 12 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
None define linkonce_odr i32 @baz() #0 {
0 define weak i32 @baz() #0 {
11 entry:
22 ret i32 0
33 }
0 ; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s
1 ; REQUIRES: not_COFF
12 ;
23 ; Check that functions in two different modules agree on the address of weak
34 ; function 'baz'
5 ; Testing on COFF platforms is disabled as COFF has no representation of 'weak'
6 ; linkage.
47
5 define linkonce_odr i32 @baz() {
8 define weak i32 @baz() {
69 entry:
710 ret i32 0
811 }
None define linkonce_odr i32 @baz() #0 {
0 define weak i32 @baz() #0 {
11 entry:
22 ret i32 0
33 }
0 ; RUN: lli -jit-kind=orc-mcjit -extra-module %p/Inputs/weak-function-2.ll %s
1 ; REQUIRES: not_COFF
12 ;
23 ; Check that functions in two different modules agree on the address of weak
3 ; function 'baz'
4 ; function 'baz'.
5 ; Testing on COFF platforms is disabled as COFF has no representation of 'weak'
6 ; linkage.
47
5 define linkonce_odr i32 @baz() {
8 define weak i32 @baz() {
69 entry:
710 ret i32 0
811 }
356356 # Others/can-execute.txt
357357 if sys.platform not in ['win32']:
358358 config.available_features.add('can-execute')
359 config.available_features.add('not_COFF')
359360
360361 # Loadable module
361362 # FIXME: This should be supplied by Makefile or autoconf.