OSDN Git Service

__DATA not __DATA__ is the right segment name on darwin.
authorDale Johannesen <dalej@apple.com>
Tue, 12 Feb 2008 23:35:09 +0000 (23:35 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 12 Feb 2008 23:35:09 +0000 (23:35 +0000)
Spotted by Nick Kledzik.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47037 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMAsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.cpp

index 0d10097..7c69aa1 100644 (file)
@@ -848,7 +848,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
       if (I->hasExternalLinkage()) {
         if (const char *Directive = TAI->getZeroFillDirective()) {
           O << "\t.globl\t" << name << "\n";
-          O << Directive << "__DATA__, __common, " << name << ", "
+          O << Directive << "__DATA, __common, " << name << ", "
             << Size << ", " << Align << "\n";
           continue;
         }
index 0b8c31c..727707b 100644 (file)
@@ -183,7 +183,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
       if (I->hasExternalLinkage()) {
         if (const char *Directive = TAI->getZeroFillDirective()) {
           O << "\t.globl " << name << "\n";
-          O << Directive << "__DATA__, __common, " << name << ", "
+          O << Directive << "__DATA, __common, " << name << ", "
             << Size << ", " << Align << "\n";
           continue;
         }