summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/Inputs/funcimport_appending_global.ll
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-12-03 18:20:05 +0000
committerTeresa Johnson <tejohnson@google.com>2015-12-03 18:20:05 +0000
commit1e20a652ee89129534b0cac822ba35d109e8c2d8 (patch)
tree9c67afcdab3545ae545b6fe82dcf0189f782c456 /llvm/test/Linker/Inputs/funcimport_appending_global.ll
parent7709aa0e07872e5088c6030e33915d7596e2fec4 (diff)
downloadbcm5719-llvm-1e20a652ee89129534b0cac822ba35d109e8c2d8.tar.gz
bcm5719-llvm-1e20a652ee89129534b0cac822ba35d109e8c2d8.zip
[ThinLTO] Appending linkage fixes
Summary: Fix import from module with appending var, which cannot be imported. The first fix is to remove an overly-aggressive error check. The second fix is to deal with restructuring introduced to the module linker yesterday in r254418 (actually, this fix was included already in r254559, just added some additional cleanup). Test by Mehdi Amini. Reviewers: joker.eph, rafael Subscribers: joker.eph, llvm-commits Differential Revision: http://reviews.llvm.org/D15156 llvm-svn: 254624
Diffstat (limited to 'llvm/test/Linker/Inputs/funcimport_appending_global.ll')
-rw-r--r--llvm/test/Linker/Inputs/funcimport_appending_global.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Linker/Inputs/funcimport_appending_global.ll b/llvm/test/Linker/Inputs/funcimport_appending_global.ll
new file mode 100644
index 00000000000..413b890b02a
--- /dev/null
+++ b/llvm/test/Linker/Inputs/funcimport_appending_global.ll
@@ -0,0 +1,6 @@
+@v = weak global i8 1
+@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* @v}]
+
+define void @foo() {
+ ret void
+}
OpenPOWER on IntegriCloud