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"; } }