Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.67 -> 1.68 --- Log message: Fix some loose ends in MASM support. --- Diffs of the changes: (+5 -5) AsmPrinter.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/lib/CodeGen/AsmPrinter.cpp diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.67 llvm/lib/CodeGen/AsmPrinter.cpp:1.68 --- llvm/lib/CodeGen/AsmPrinter.cpp:1.67 Fri May 5 16:47:05 2006 +++ llvm/lib/CodeGen/AsmPrinter.cpp Sat May 6 16:27:14 2006 @@ -71,9 +71,9 @@ if (MLSections) { if (*NewSection == 0) { // Simply end the current section, if any. - if (CurrentSection != "") { - O << CurrentSection << "\tends\n"; - CurrentSection = ""; + if (!CurrentSection.empty()) { + O << CurrentSection << "\tends\n\n"; + CurrentSection.clear(); } return; } @@ -88,8 +88,8 @@ NS = "_text"; if (CurrentSection != NS) { - if (CurrentSection != "") - O << CurrentSection << "\tends\n"; + if (!CurrentSection.empty()) + O << CurrentSection << "\tends\n\n"; CurrentSection = NS; O << CurrentSection << (isData ? "\tsegment 'DATA'\n" : "\tsegment 'CODE'\n"); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits