aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC
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
commitc440cc7f2c1e1e02fb4526babc9ab99986beb6e0 (patch)
tree5e2f727122708fb6eea1a71fd91f0d8e3547a88b /lib/Target/PowerPC
parent7da9559c523584ce704d3e6321e613e3c2f00b3d (diff)
downloadexternal_llvm-c440cc7f2c1e1e02fb4526babc9ab99986beb6e0.zip
external_llvm-c440cc7f2c1e1e02fb4526babc9ab99986beb6e0.tar.gz
external_llvm-c440cc7f2c1e1e02fb4526babc9ab99986beb6e0.tar.bz2
use section flags more correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC')
-rw-r--r--lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
index 9c0aa74..1ac3e32 100644
--- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
@@ -897,7 +897,8 @@ void PPCDarwinAsmPrinter::PrintGlobalVariable(const GlobalVariable *GVar) {
!GVar->hasSection() &&
(GVar->hasLocalLinkage() || GVar->hasExternalLinkage() ||
GVar->isWeakForLinker()) &&
- TheSection->getFlags() != SectionKind::RODataMergeStr) {
+ // Don't put things that should go in the cstring section into "comm".
+ !TheSection->hasFlag(SectionFlags::Strings)) {
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
if (GVar->hasExternalLinkage()) {