diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 22:51:54 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-07-30 22:51:54 +0000 |
commit | 464fe024c53180caaf3a06a45409b04905c27c58 (patch) | |
tree | b55d811630df41bf7e9050ee44064157455bdff9 /llvm/test/Object | |
parent | c5fe19d06265fcde822cd549d3c90d27c11e320e (diff) | |
download | bcm5719-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/Object')
-rw-r--r-- | llvm/test/Object/X86/nm-ir.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Object/X86/nm-ir.ll b/llvm/test/Object/X86/nm-ir.ll index 6bb7e2323a2..881397c00a4 100644 --- a/llvm/test/Object/X86/nm-ir.ll +++ b/llvm/test/Object/X86/nm-ir.ll @@ -28,7 +28,7 @@ module asm ".long undef_asm_sym" @g4 = private global i32 42 @a1 = alias i32* @g1 -@a2 = alias internal i32* @g1 +@a2 = internal alias i32* @g1 define void @f1() { ret void |