Use "weak alias" instead of "alias weak"
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 30 Jul 2014 22:51:54 +0000 (22:51 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 30 Jul 2014 22:51:54 +0000 (22:51 +0000)
commitd57120551f8c1e810bf5f55f60d9a46b66da6e54
tree65f8bb9ed812ebe617bcfea25aab747e4f79dbab
parent367c5c25e89c3c9251bc30f0880e3fb1f65df955
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
43 files changed:
docs/LangRef.rst
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/IR/AsmWriter.cpp
test/Assembler/2007-09-10-AliasFwdRef.ll
test/Assembler/addrspacecast-alias.ll
test/Assembler/internal-hidden-alias.ll
test/Assembler/internal-protected-alias.ll
test/Assembler/private-hidden-alias.ll
test/Assembler/private-protected-alias.ll
test/Bitcode/local-linkage-default-visibility.3.4.ll
test/CodeGen/ARM/aliases.ll
test/CodeGen/Generic/2009-03-17-LSR-APInt.ll
test/CodeGen/X86/2007-09-06-ExtWeakAliasee.ll
test/CodeGen/X86/aliases.ll
test/CodeGen/X86/dllexport-x86_64.ll
test/CodeGen/X86/dllexport.ll
test/CodeGen/X86/fast-isel-tls.ll
test/CodeGen/X86/jump_table_alias.ll
test/CodeGen/X86/x86-64-pic-10.ll
test/DebugInfo/X86/pr12831.ll
test/Feature/aliases.ll
test/Linker/2008-03-05-AliasReference.ll
test/Linker/2011-08-22-ResolveAlias.ll
test/Linker/2011-08-22-ResolveAlias2.ll
test/Linker/visibility2.ll
test/Object/X86/nm-ir.ll
test/Transforms/GVN/2009-03-10-PREOnVoid.ll
test/Transforms/GlobalDCE/2009-01-05-DeadAliases.ll
test/Transforms/GlobalDCE/2009-02-17-AliasUsesAliasee.ll
test/Transforms/GlobalOpt/2009-02-15-ResolveAlias.ll
test/Transforms/GlobalOpt/alias-resolve.ll
test/Transforms/GlobalOpt/alias-used-address-space.ll
test/Transforms/GlobalOpt/alias-used-section.ll
test/Transforms/GlobalOpt/alias-used.ll
test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll
test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll
test/Transforms/InstCombine/objsize-address-space.ll
test/Transforms/InstCombine/objsize.ll
test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll
test/Transforms/Internalize/local-visibility.ll
test/Transforms/MetaRenamer/metarenamer.ll
test/Verifier/alias.ll