summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-09 05:13:34 +0000
committerChris Lattner <sabre@nondot.org>2006-05-09 05:13:34 +0000
commit4ca4bb1ed2963a09c758677727a9f5432448fac9 (patch)
tree4219ba1b58aa46153177ce26a8f6965659c65222 /lib/CodeGen
parentdad9c5a14ff29cf4b5f7d7352da8f15337bae51f (diff)
downloadllvm-4ca4bb1ed2963a09c758677727a9f5432448fac9.tar.gz
llvm-4ca4bb1ed2963a09c758677727a9f5432448fac9.tar.bz2
llvm-4ca4bb1ed2963a09c758677727a9f5432448fac9.tar.xz
The MASM asmprinter has been fixed, these hacks are no longer needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp22
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 5b44c9ca5d..242a4fbbd0 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -70,19 +70,10 @@ void AsmPrinter::SwitchToTextSection(const char *NewSection,
// sections.
if (MLSections) {
- if (*NewSection == 0) {
- // Simply end the current section, if any.
- if (!CurrentSection.empty()) {
- O << CurrentSection << "\tends\n\n";
- CurrentSection.clear();
- }
- return;
- }
-
if (GV && GV->hasSection())
NS = GV->getSection();
else
- NS = "_text";
+ NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())
@@ -115,19 +106,10 @@ void AsmPrinter::SwitchToDataSection(const char *NewSection,
// sections.
if (MLSections) {
- if (*NewSection == 0) {
- // Simply end the current section, if any.
- if (!CurrentSection.empty()) {
- O << CurrentSection << "\tends\n\n";
- CurrentSection.clear();
- }
- return;
- }
-
if (GV && GV->hasSection())
NS = GV->getSection();
else
- NS = "_data";
+ NS = NewSection;
if (CurrentSection != NS) {
if (!CurrentSection.empty())