[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 13 22:07:11 PDT 2004



Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.160 -> 1.161
---
Log message:

Don't print newlines between passes in the pass list.
Note to self: sentences end with ".", not "...".
Note to reid: sentences end with ".", not "".   :)



---
Diffs of the changes:  (+8 -8)

Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.160 llvm/lib/VMCore/AsmWriter.cpp:1.161
--- llvm/lib/VMCore/AsmWriter.cpp:1.160	Mon Sep 13 23:51:44 2004
+++ llvm/lib/VMCore/AsmWriter.cpp	Tue Sep 14 00:06:58 2004
@@ -764,13 +764,13 @@
   if (!M->getTargetTriple().empty())
     Out << "target triple = \"" << M->getTargetTriple() << "\"\n";
   
-  // Loop over the dependent libraries and emit them
+  // Loop over the dependent libraries and emit them.
   Module::lib_iterator LI = M->lib_begin();
   Module::lib_iterator LE = M->lib_end();
   if (LI != LE) {
     Out << "deplibs = [ ";
     while (LI != LE) {
-      Out << "\"" << *LI << "\"";
+      Out << '"' << *LI << '"';
       ++LI;
       if (LI != LE)
         Out << ", ";
@@ -778,21 +778,21 @@
     Out << " ]\n";
   }
 
-  // Loop over the link time pass list and emit them
+  // Loop over the link time pass list and emit them.
   Module::pass_iterator PI = M->pass_begin();
   Module::pass_iterator PE = M->pass_end();
   if (LI != LE) {
-    Out << "passes = [\n";
+    Out << "passes = [ ";
     while (LI != LE) {
-      Out << "\"" << *LI << "\"";
+      Out << '"' << *LI << '"';
       ++LI;
       if (LI != LE)
-        Out << ",\n";
+        Out << ", ";
     }
     Out << " ]\n";
   }
   
-  // Loop over the symbol table, emitting all named constants...
+  // Loop over the symbol table, emitting all named constants.
   printSymbolTable(M->getSymbolTable());
   
   for (Module::const_giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
@@ -800,7 +800,7 @@
 
   Out << "\nimplementation   ; Functions:\n";
   
-  // Output all of the functions...
+  // Output all of the functions.
   for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
     printFunction(I);
 }






More information about the llvm-commits mailing list