mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 06:25:01 +00:00
__DATA not __DATA__ is the right segment name on darwin.
Spotted by Nick Kledzik. llvm-svn: 47037
This commit is contained in:
parent
589ecad41d
commit
4621e574c9
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user