mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-03 17:31:50 +00:00
67404cfbc0
Other objects can never reference the MergedGlobals symbol so external linkage is never needed. Using private instead of internal linkage means the object is more similar to what it looks like when global merging is not enabled, with the only difference being that the merged variables are addressed indirectly relative to the start of the section they are in. Also add aliases for merged variables with internal linkage, as this also makes the object be more like what it is when they are not merged. Differential Revision: http://reviews.llvm.org/D11942 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244615 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
501 B
LLVM
11 lines
501 B
LLVM
; RUN: llc < %s -mtriple=thumbv7-apple-darwin10 -arm-global-merge -global-merge-group-by-use=false | FileCheck %s
|
|
; CHECK: .zerofill __DATA,__bss,l__MergedGlobals,16,2
|
|
|
|
@prev = external global [0 x i16]
|
|
@max_lazy_match = internal unnamed_addr global i32 0, align 4
|
|
@read_buf = external global i32 (i8*, i32)*
|
|
@window = external global [0 x i8]
|
|
@lookahead = internal unnamed_addr global i32 0, align 4
|
|
@eofile.b = internal unnamed_addr global i32 0
|
|
@ins_h = internal unnamed_addr global i32 0, align 4
|