summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 04:08:17 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 04:08:17 +0000
commit1553fdee5583e0661271cb6738848a252237f21b (patch)
tree6972828a2a6cca6d7639157e6be830c1eb5bbaee /llvm/lib/Target/X86
parenta3d677b0020a66cdbfeb8fb5e62efbb41fb4ad2f (diff)
downloadbcm5719-llvm-1553fdee5583e0661271cb6738848a252237f21b.tar.gz
bcm5719-llvm-1553fdee5583e0661271cb6738848a252237f21b.zip
use section flags more correctly.
llvm-svn: 76944
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index 334172a90d7..6e44b9b87f3 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -798,9 +798,8 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
SwitchToSection(TheSection);
if (C->isNullValue() && !GVar->hasSection() &&
- !(Subtarget->isTargetDarwin() &&
- TAI->SectionKindForGlobal(GVar) == SectionKind::RODataMergeStr)) {
- // FIXME: This seems to be pretty darwin-specific
+ // Don't put things that should go in the cstring section into "comm".
+ !TheSection->hasFlag(SectionFlags::Strings)) {
if (GVar->hasExternalLinkage()) {
if (const char *Directive = TAI->getZeroFillDirective()) {
O << "\t.globl " << name << '\n';
OpenPOWER on IntegriCloud