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()) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits