aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-02-12 23:35:09 +0000
committerDale Johannesen <dalej@apple.com>2008-02-12 23:35:09 +0000
commit3006c39e3a2f137dcb0f1b52d8a1c60a9657ed44 (patch)
treefba6c5330ba25e8d8035dab82a4cdc18aa5a9d05
parentbf1caa98549317a8fe84b6f67a2209db9eeededc (diff)
__DATA not __DATA__ is the right segment name on darwin.
Spotted by Nick Kledzik. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47037 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/ARMAsmPrinter.cpp2
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp
index 0d100977d2..7c69aa192b 100644
--- a/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -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;
}
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 0b8c31cc7f..727707b45d 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -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;
}