[GlobalMerge] Only emit aliases for internal linkage variables for non-Mach-O
authorJohn Brawn <john.brawn@arm.com>
Wed, 12 Aug 2015 13:36:48 +0000 (13:36 +0000)
committerJohn Brawn <john.brawn@arm.com>
Wed, 12 Aug 2015 13:36:48 +0000 (13:36 +0000)
commit1a5ed7be24acd9035006af4de59bb78d190bd0cc
tree80b8da464dec6a3fb0f9bfef96bf45b48d5abc79
parentf7d96a06fb36a698d9f8903b18ca2e3288019be8
[GlobalMerge] Only emit aliases for internal linkage variables for non-Mach-O

On Mach-O emitting aliases for the variables that make up a MergedGlobals
variable can cause problems when linking with dead stripping enabled so don't
do that, except for external variables where we must emit an alias.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244748 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalMerge.cpp
test/CodeGen/AArch64/global-merge-1.ll
test/CodeGen/AArch64/global-merge-3.ll