summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-02-08 18:47:20 +0000
committerTeresa Johnson <tejohnson@google.com>2016-02-08 18:47:20 +0000
commitd7e88e515c19ccf7ca21d01f1762697a67e1da8e (patch)
treed3d3b67ac83886fbddbbb4c52623554783b5e978 /llvm/test/Linker/Inputs
parent73fe6ce1187f5b4ec2636e5cb3c5120660fcb1e8 (diff)
downloadbcm5719-llvm-d7e88e515c19ccf7ca21d01f1762697a67e1da8e.tar.gz
bcm5719-llvm-d7e88e515c19ccf7ca21d01f1762697a67e1da8e.zip
[ThinLTO] Remove imported available externally defs from comdats.
Summary: Available externally definitions are considered declarations for the linker and eventually dropped. As such they are not allowed to be in comdats. Remove any such imported functions from comdats. Reviewers: rafael Subscribers: davidxl, llvm-commits, joker.eph Differential Revision: http://reviews.llvm.org/D16120 llvm-svn: 260122
Diffstat (limited to 'llvm/test/Linker/Inputs')
-rw-r--r--llvm/test/Linker/Inputs/funcimport_comdat.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/funcimport_comdat.ll b/llvm/test/Linker/Inputs/funcimport_comdat.ll
new file mode 100644
index 00000000000..9a4b9d728d4
--- /dev/null
+++ b/llvm/test/Linker/Inputs/funcimport_comdat.ll
@@ -0,0 +1,4 @@
+define i32 @main() #0 {
+entry:
+ ret i32 0
+}
OpenPOWER on IntegriCloud