diff options
author | John Brawn <john.brawn@arm.com> | 2015-07-17 12:12:03 +0000 |
---|---|---|
committer | John Brawn <john.brawn@arm.com> | 2015-07-17 12:12:03 +0000 |
commit | 9ca9ca2805db7542530dbc41c9ee0f8a20cfa769 (patch) | |
tree | eecdceffe2ee2441b78f7c73a83a0547f5ec9463 /llvm/test/CodeGen/AArch64/global-merge-2.ll | |
parent | Improve conditional opcode handling in emulation based unwinding (diff) | |
download | llvm-project-9ca9ca2805db7542530dbc41c9ee0f8a20cfa769.tar.gz llvm-project-9ca9ca2805db7542530dbc41c9ee0f8a20cfa769.tar.bz2 llvm-project-9ca9ca2805db7542530dbc41c9ee0f8a20cfa769.zip |
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
Diffstat (limited to 'llvm/test/CodeGen/AArch64/global-merge-2.ll')
-rw-r--r-- | llvm/test/CodeGen/AArch64/global-merge-2.ll | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/global-merge-2.ll b/llvm/test/CodeGen/AArch64/global-merge-2.ll index af684039bf10..cdbdb8aed2ef 100644 --- a/llvm/test/CodeGen/AArch64/global-merge-2.ll +++ b/llvm/test/CodeGen/AArch64/global-merge-2.ll @@ -35,10 +35,13 @@ define void @g1(i32 %a1, i32 %a2) { ;CHECK: .globl x ;CHECK: x = _MergedGlobals_x +;CHECK: .size x, 4 ;CHECK: .globl y ;CHECK: y = _MergedGlobals_x+4 +;CHECK: .size y, 4 ;CHECK: .globl z ;CHECK: z = _MergedGlobals_x+8 +;CHECK: .size z, 4 ;CHECK-APPLE-IOS: .globl __MergedGlobals_x ; @_MergedGlobals_x ;CHECK-APPLE-IOS: .zerofill __DATA,__common,__MergedGlobals_x,12,3 |