[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon May 8 22:13:46 PDT 2006
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.69 -> 1.70
---
Log message:
The MASM asmprinter has been fixed, these hacks are no longer needed.
---
Diffs of the changes: (+2 -20)
AsmPrinter.cpp | 22 ++--------------------
1 files changed, 2 insertions(+), 20 deletions(-)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.69 llvm/lib/CodeGen/AsmPrinter.cpp:1.70
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.69 Mon May 8 23:59:56 2006
+++ llvm/lib/CodeGen/AsmPrinter.cpp Tue May 9 00:13:34 2006
@@ -70,19 +70,10 @@
// 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 @@
// 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())
More information about the llvm-commits
mailing list