summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-03-05 22:28:45 +0000
committerCharles Davis <cdavis@mines.edu>2010-03-05 22:28:45 +0000
commit8545afe0b064d814bea7ecb442fb27c73ce427af (patch)
treea78641fa31f13adde75bdd775655d2b048d7f26c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent87abfc506f6f836fbd6aaf2d3f3f901e5cef3c61 (diff)
downloadbcm5719-llvm-8545afe0b064d814bea7ecb442fb27c73ce427af.tar.gz
bcm5719-llvm-8545afe0b064d814bea7ecb442fb27c73ce427af.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 47164f733f1..3b3be5d9b1a 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -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())
OpenPOWER on IntegriCloud