mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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:
parent
1162ed2900
commit
b27df44b62
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user