summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-08-09 19:27:17 +0000
committerLang Hames <lhames@gmail.com>2016-08-09 19:27:17 +0000
commitbb9431acdae76f786f7bedceb9fa671b5f12d3c6 (patch)
tree48a173f44d8c510eb29cc754210decdaf3b32be8 /llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
parenta203c41dd9553a645f3b5468814552bb08eb8aff (diff)
downloadbcm5719-llvm-bb9431acdae76f786f7bedceb9fa671b5f12d3c6.tar.gz
bcm5719-llvm-bb9431acdae76f786f7bedceb9fa671b5f12d3c6.zip
Re-apply r278065 (Weak symbol support in RuntimeDyld) with a fix for ELF.
llvm-svn: 278149
Diffstat (limited to 'llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
new file mode 100644
index 00000000000..a7ff83df039
--- /dev/null
+++ b/llvm/test/ExecutionEngine/MCJIT/Inputs/weak-function-2.ll
@@ -0,0 +1,9 @@
+define linkonce_odr i32 @baz() #0 {
+entry:
+ ret i32 0
+}
+
+define i8* @bar() {
+entry:
+ ret i8* bitcast (i32 ()* @baz to i8*)
+}
OpenPOWER on IntegriCloud