Fix bug where SwitchSection would fail to change to ".bss" successfully.
authorBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 08:08:23 +0000 (08:08 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Thu, 8 Jul 2004 08:08:23 +0000 (08:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14685 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/SparcV8/SparcV8AsmPrinter.cpp

index 46b0d4fff081cb02b37ad092cab4ea4b91882d92..64060abae686f60a7c36d5419a10b17aeef9d484 100644 (file)
@@ -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";
   }
 }
 
index 46b0d4fff081cb02b37ad092cab4ea4b91882d92..64060abae686f60a7c36d5419a10b17aeef9d484 100644 (file)
@@ -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";
   }
 }