Make global aliases have symbol size equal to their type
authorJohn Brawn <john.brawn@arm.com>
Fri, 17 Jul 2015 12:12:03 +0000 (12:12 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 17 Jul 2015 12:12:03 +0000 (12:12 +0000)
commit591adee23bf68ecae9fccd35c937dd03d15a054e
tree66dc5719ecd145d1f7e0d9267c118a0261079507
parentfe6ad9692a905d41da381c5faa99b773acca5eee
Make global aliases have symbol size equal to their type

This is mainly for the benefit of GlobalMerge, so that an alias into a
MergedGlobals variable has the same size as the original non-merged
variable.

Differential Revision: http://reviews.llvm.org/D10837

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242520 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/AArch64/global-merge-2.ll
test/CodeGen/AArch64/global-merge-3.ll
test/CodeGen/ARM/aliases.ll