summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/private-hidden-alias.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-07-30 22:51:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-07-30 22:51:54 +0000
commit464fe024c53180caaf3a06a45409b04905c27c58 (patch)
treeb55d811630df41bf7e9050ee44064157455bdff9 /llvm/test/Assembler/private-hidden-alias.ll
parentc5fe19d06265fcde822cd549d3c90d27c11e320e (diff)
downloadbcm5719-llvm-464fe024c53180caaf3a06a45409b04905c27c58.tar.gz
bcm5719-llvm-464fe024c53180caaf3a06a45409b04905c27c58.zip
Use "weak alias" instead of "alias weak"
Before this patch we had @a = weak global ... but @b = alias weak ... The patch changes aliases to look more like global variables. Looking at some really old code suggests that the reason was that the old bison based parser had a reduction for alias linkages and another one for global variable linkages. Putting the alias first avoided the reduce/reduce conflict. The days of the old .ll parser are long gone. The new one parses just "linkage" and a later check is responsible for deciding if a linkage is valid in a given context. llvm-svn: 214355
Diffstat (limited to 'llvm/test/Assembler/private-hidden-alias.ll')
-rw-r--r--llvm/test/Assembler/private-hidden-alias.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Assembler/private-hidden-alias.ll b/llvm/test/Assembler/private-hidden-alias.ll
index 58be92a34f2..2e770e58784 100644
--- a/llvm/test/Assembler/private-hidden-alias.ll
+++ b/llvm/test/Assembler/private-hidden-alias.ll
@@ -2,5 +2,5 @@
@global = global i32 0
-@alias = hidden alias private i32* @global
+@alias = private hidden alias i32* @global
; CHECK: symbol with local linkage must have default visibility
OpenPOWER on IntegriCloud