[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 8 22:16:10 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.70 -> 1.71
---
Log message:
Make the masm codepath work like the normal code path.
---
Diffs of the changes: (+4 -2)
AsmPrinter.cpp | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.70 llvm/lib/CodeGen/AsmPrinter.cpp:1.71
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.70 Tue May 9 00:13:34 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Tue May 9 00:15:58 2006
@@ -79,7 +79,8 @@
if (!CurrentSection.empty())
O << CurrentSection << "\tends\n\n";
CurrentSection = NS;
- O << CurrentSection << "\tsegment 'CODE'\n";
+ if (!CurrentSection.empty())
+ O << CurrentSection << "\tsegment 'CODE'\n";
}
} else {
if (GV && GV->hasSection())
@@ -115,7 +116,8 @@
if (!CurrentSection.empty())
O << CurrentSection << "\tends\n\n";
CurrentSection = NS;
- O << CurrentSection << "\tsegment 'DATA'\n";
+ if (!CurrentSection.empty())
+ O << CurrentSection << "\tsegment 'DATA'\n";
}
} else {
if (GV && GV->hasSection())
More information about the llvm-commits
mailing list