mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
557ccbef5f
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 llvm-svn: 244615
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
|