From 7e540fe2b6343b1481f492ed599a0261dc1bd413 Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 8 Jul 2004 08:08:23 +0000 Subject: [PATCH] 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 --- lib/Target/Sparc/SparcAsmPrinter.cpp | 2 +- lib/Target/SparcV8/SparcV8AsmPrinter.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"; } }