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
This commit is contained in:
Brian Gaeke 2004-07-08 08:08:23 +00:00
parent ccdd70a5c0
commit 7e540fe2b6
2 changed files with 2 additions and 2 deletions

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

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