summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-09-29 03:25:40 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-09-29 03:25:40 +0000
commitead8e3983233d07521c2d88c4b7779f0b5edd005 (patch)
tree153ecdc58a365ca13094fc86fa4b8f5afc995b96 /llvm/lib/Target
parent457180c597132dc45689f6f479fce06a452757c4 (diff)
downloadbcm5719-llvm-ead8e3983233d07521c2d88c4b7779f0b5edd005.tar.gz
bcm5719-llvm-ead8e3983233d07521c2d88c4b7779f0b5edd005.zip
Put quotes around argument to .section directive.
llvm-svn: 16572
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp b/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
index 90ac0f04994..c2a596873a4 100644
--- a/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
+++ b/llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp
@@ -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:
OpenPOWER on IntegriCloud