commit | ae73b0a932649733b405489bd2dfe1abe28bcc7a | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Tue Aug 09 20:48:22 2016 +0000 |
committer | Lang Hames <lhames@gmail.com> | Tue Aug 09 20:48:22 2016 +0000 |
tree | 46a80ef633f71db1441a106486b53afa10356c4c | |
parent | 575435012ca30f3064d539baf9a920c9f3fdd82d [diff] |
[ExecutionEngine] Disable weak symbol tests for COFF. COFF doesn't support weak linkage on functions. llvm-svn: 278162
diff --git a/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll index a7ff83d..73544a7 100644 --- a/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll +++ b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
@@ -1,4 +1,4 @@ -define linkonce_odr i32 @baz() #0 { +define weak i32 @baz() #0 { entry: ret i32 0 }
diff --git a/llvm/test/ExecutionEngine/MCJIT/weak-function.ll b/llvm/test/ExecutionEngine/MCJIT/weak-function.ll index 562d6ad..843fb4a 100644 --- a/llvm/test/ExecutionEngine/MCJIT/weak-function.ll +++ b/llvm/test/ExecutionEngine/MCJIT/weak-function.ll
@@ -1,9 +1,12 @@ ; RUN: lli -jit-kind=mcjit -extra-module %p/Inputs/weak-function-2.ll %s +; REQUIRES: not_COFF ; ; Check that functions in two different modules agree on the address of weak ; function 'baz' +; Testing on COFF platforms is disabled as COFF has no representation of 'weak' +; linkage. -define linkonce_odr i32 @baz() { +define weak i32 @baz() { entry: ret i32 0 }
diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll b/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll index a7ff83d..73544a7 100644 --- a/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll +++ b/llvm/test/ExecutionEngine/OrcMCJIT/Inputs/weak-function-2.ll
@@ -1,4 +1,4 @@ -define linkonce_odr i32 @baz() #0 { +define weak i32 @baz() #0 { entry: ret i32 0 }
diff --git a/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll b/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll index db255cd..a367ce6 100644 --- a/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll +++ b/llvm/test/ExecutionEngine/OrcMCJIT/weak-function.ll
@@ -1,9 +1,12 @@ ; RUN: lli -jit-kind=orc-mcjit -extra-module %p/Inputs/weak-function-2.ll %s +; REQUIRES: not_COFF ; ; Check that functions in two different modules agree on the address of weak -; function 'baz' +; function 'baz'. +; Testing on COFF platforms is disabled as COFF has no representation of 'weak' +; linkage. -define linkonce_odr i32 @baz() { +define weak i32 @baz() { entry: ret i32 0 }