summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-09-06 17:21:48 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-09-06 17:21:48 +0000
commita07765b8f4d9da2836d8f89b26d7f476715dffb4 (patch)
treedf41bbbc5d0a6579a00d28b705579a0ca5acf68a /llvm/test/CodeGen
parent73c18e0362922ac6785ca8d2526fa9784a0f0c93 (diff)
downloadbcm5719-llvm-a07765b8f4d9da2836d8f89b26d7f476715dffb4.tar.gz
bcm5719-llvm-a07765b8f4d9da2836d8f89b26d7f476715dffb4.zip
Proper handle case, when aliasee is external weak symbol referenced only by alias itself.
Also, fix a case, when target doesn't have weak symbols supported. llvm-svn: 41746
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll b/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
new file mode 100644
index 00000000000..4f95b7603ba
--- /dev/null
+++ b/llvm/test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
@@ -0,0 +1,4 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep weak | count 2
+@__gthrw_pthread_once = alias weak i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, void ()*)*> [#uses=0]
+
+declare extern_weak i32 @pthread_once(i32*, void ()*)
OpenPOWER on IntegriCloud