From: Brian Gaeke Date: Thu, 8 Jul 2004 08:08:23 +0000 (+0000) Subject: Fix bug where SwitchSection would fail to change to ".bss" successfully. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e540fe2b6343b1481f492ed599a0261dc1bd413;p=oota-llvm.git Fix bug where SwitchSection would fail to change to ".bss" successfully. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14685 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index 46b0d4fff08..64060abae68 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -545,7 +545,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection, if (CurSection != NewSection) { CurSection = NewSection; if (!CurSection.empty()) - OS << "\t" << NewSection << "\n"; + OS << "\t.section " << NewSection << "\n"; } } diff --git a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp index 46b0d4fff08..64060abae68 100644 --- a/lib/Target/SparcV8/SparcV8AsmPrinter.cpp +++ b/lib/Target/SparcV8/SparcV8AsmPrinter.cpp @@ -545,7 +545,7 @@ static void SwitchSection(std::ostream &OS, std::string &CurSection, if (CurSection != NewSection) { CurSection = NewSection; if (!CurSection.empty()) - OS << "\t" << NewSection << "\n"; + OS << "\t.section " << NewSection << "\n"; } }