mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-28 07:17:32 +00:00
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97845 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user