parent
e974da6bb7
commit
e1e06c2de8
|
@ -548,6 +548,14 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
|||
O << "\t.globl " << name << "\n";
|
||||
// FALL THROUGH
|
||||
case GlobalValue::InternalLinkage:
|
||||
if (TAI->getCStringSection()) {
|
||||
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
|
||||
if (CVA && CVA->isCString()) {
|
||||
SwitchToDataSection(TAI->getCStringSection(), I);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
SwitchToDataSection("\t.data", I);
|
||||
break;
|
||||
default:
|
||||
|
|
|
@ -28,6 +28,7 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM) {
|
|||
AlignmentIsInBytes = false;
|
||||
ConstantPoolSection = "\t.const\t";
|
||||
JumpTableDataSection = ".const";
|
||||
CStringSection = "\t.cstring";
|
||||
LCOMMDirective = "\t.lcomm\t";
|
||||
StaticCtorsSection = ".mod_init_func";
|
||||
StaticDtorsSection = ".mod_term_func";
|
||||
|
|
Loading…
Reference in New Issue