1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fix section definition.

llvm-svn: 33359
This commit is contained in:
Lauro Ramos Venancio 2007-01-19 17:33:22 +00:00
parent 944088f221
commit f53f62b91d

View File

@ -753,7 +753,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
<< "\t.weak_definition " << name << "\n";
SwitchToDataSection("\t.section __DATA,__const_coal,coalesced", I);
} else {
O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",@progbits\n"
O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",%progbits\n"
<< "\t.weak " << name << "\n";
}
break;
@ -774,7 +774,7 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
I->getSection() == ".dtors")) {
assert(!Subtarget->isDarwin());
std::string SectionName = ".section " + I->getSection();
SectionName += ",\"aw\",@progbits";
SectionName += ",\"aw\",%progbits";
SwitchToDataSection(SectionName.c_str());
} else {
SwitchToDataSection(TAI->getDataSection(), I);