forked from OSchip/llvm-project
Don't emit global symbols into the (__TEXT,__ustring) section on Darwin. This
is a workaround for <rdar://problem/7672401/> (which I filed). This let's us build Wine on Darwin, and it gets the Qt build there a little bit further (so Doug says). llvm-svn: 97845
This commit is contained in:
parent
87abfc506f
commit
8545afe0b0
|
@ -652,7 +652,7 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
|||
|
||||
// FIXME: Alignment check should be handled by section classifier.
|
||||
if (Kind.isMergeable1ByteCString() ||
|
||||
Kind.isMergeable2ByteCString()) {
|
||||
(Kind.isMergeable2ByteCString() && !GV->hasExternalLinkage())) {
|
||||
if (TM.getTargetData()->getPreferredAlignment(
|
||||
cast<GlobalVariable>(GV)) < 32) {
|
||||
if (Kind.isMergeable1ByteCString())
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
|
||||
@G8 = constant [4 x i16] [ i16 1, i16 2, i16 3, i16 0 ]
|
||||
|
||||
; DARWIN: .section __TEXT,__ustring
|
||||
; DARWIN: .section __TEXT,__const
|
||||
; DARWIN: .globl _G8
|
||||
; DARWIN: _G8:
|
||||
|
||||
|
@ -110,7 +110,6 @@
|
|||
|
||||
@G9 = constant [4 x i32] [ i32 1, i32 2, i32 3, i32 0 ]
|
||||
|
||||
; DARWIN: .section __TEXT,__const
|
||||
; DARWIN: .globl _G9
|
||||
; DARWIN: _G9:
|
||||
|
||||
|
|
Loading…
Reference in New Issue