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)
commit9ca9ca2805db7542530dbc41c9ee0f8a20cfa769
treeeecdceffe2ee2441b78f7c73a83a0547f5ec9463
parent022622f1d4ee7fc981d182868e0d8aded4c346fe
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

llvm-svn: 242520
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/AArch64/global-merge-2.ll
llvm/test/CodeGen/AArch64/global-merge-3.ll
llvm/test/CodeGen/ARM/aliases.ll