Put quotes around argument to .section directive.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16572 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke 2004-09-29 03:25:40 +00:00
parent 1162ed2900
commit b27df44b62
2 changed files with 6 additions and 6 deletions

View File

@ -305,7 +305,7 @@ void V8Printer::printConstantPool(MachineConstantPool *MCP) {
if (CP.empty()) return;
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.section .rodata\n";
O << "\t.section \".rodata\"\n";
O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
<< "\n";
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t!"
@ -561,7 +561,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection,
if (CurSection != NewSection) {
CurSection = NewSection;
if (!CurSection.empty())
OS << "\t.section " << NewSection << "\n";
OS << "\t.section \"" << NewSection << "\"\n";
}
}
@ -597,7 +597,7 @@ bool V8Printer::doFinalization(Module &M) {
// Nonnull linkonce -> weak
O << "\t.weak " << name << "\n";
SwitchSection(O, CurSection, "");
O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",@progbits\n";
O << "\t.section\t\".llvm.linkonce.d." << name << "\",\"aw\",@progbits\n";
break;
case GlobalValue::AppendingLinkage:

View File

@ -305,7 +305,7 @@ void V8Printer::printConstantPool(MachineConstantPool *MCP) {
if (CP.empty()) return;
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.section .rodata\n";
O << "\t.section \".rodata\"\n";
O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
<< "\n";
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t!"
@ -561,7 +561,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection,
if (CurSection != NewSection) {
CurSection = NewSection;
if (!CurSection.empty())
OS << "\t.section " << NewSection << "\n";
OS << "\t.section \"" << NewSection << "\"\n";
}
}
@ -597,7 +597,7 @@ bool V8Printer::doFinalization(Module &M) {
// Nonnull linkonce -> weak
O << "\t.weak " << name << "\n";
SwitchSection(O, CurSection, "");
O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",@progbits\n";
O << "\t.section\t\".llvm.linkonce.d." << name << "\",\"aw\",@progbits\n";
break;
case GlobalValue::AppendingLinkage: