mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-25 16:30:05 +00:00
__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
This commit is contained in:
parent
bf1caa9854
commit
3006c39e3a
@ -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