summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/aliases.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
commitd57120551f8c1e810bf5f55f60d9a46b66da6e54 (patch)
tree65f8bb9ed812ebe617bcfea25aab747e4f79dbab /test/CodeGen/ARM/aliases.ll
parent367c5c25e89c3c9251bc30f0880e3fb1f65df955 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214355 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/aliases.ll')
-rw-r--r--test/CodeGen/ARM/aliases.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/aliases.ll b/test/CodeGen/ARM/aliases.ll
index f55ae10b247..5a737ad995a 100644
--- a/test/CodeGen/ARM/aliases.ll
+++ b/test/CodeGen/ARM/aliases.ll
@@ -25,9 +25,9 @@
define i32 @foo_f() {
ret i32 0
}
-@bar_f = alias weak %FunTy* @foo_f
+@bar_f = weak alias %FunTy* @foo_f
-@bar_i = alias internal i32* @bar
+@bar_i = internal alias i32* @bar
@A = alias bitcast (i32* @bar to i64*)