summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-24 03:55:48 +0000
committerChris Lattner <sabre@nondot.org>2009-07-24 03:55:48 +0000
commit53f92dc95be90a2d15a69c80f51446624ad8a4d2 (patch)
tree42f04b20659906ba45b853a4d07351efe56e0ffa /llvm/lib/Target/X86
parent07bd1cd8c5666fd94abeed60a7a24c5e15d30234 (diff)
downloadbcm5719-llvm-53f92dc95be90a2d15a69c80f51446624ad8a4d2.tar.gz
bcm5719-llvm-53f92dc95be90a2d15a69c80f51446624ad8a4d2.zip
fix a mysterious and scary failure on test/CodeGen/X86/cstring.ll
llvm-svn: 76942
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
index 74145dcfce0..334172a90d7 100644
--- a/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
+++ b/llvm/lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
@@ -799,7 +799,7 @@ void X86ATTAsmPrinter::PrintGlobalVariable(const GlobalVariable* GVar) {
if (C->isNullValue() && !GVar->hasSection() &&
!(Subtarget->isTargetDarwin() &&
- TheSection->getFlags() == SectionKind::RODataMergeStr)) {
+ TAI->SectionKindForGlobal(GVar) == SectionKind::RODataMergeStr)) {
// FIXME: This seems to be pretty darwin-specific
if (GVar->hasExternalLinkage()) {
if (const char *Directive = TAI->getZeroFillDirective()) {
OpenPOWER on IntegriCloud