Don't print newlines between each library in the deplibs list.
authorChris Lattner <sabre@nondot.org>
Tue, 14 Sep 2004 04:51:44 +0000 (04:51 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Sep 2004 04:51:44 +0000 (04:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16331 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 7f862dfbc593f32bfcf186a8bee3558596615679..ea19477219843c28461ce596d97228f2d9f3eaad 100644 (file)
@@ -765,15 +765,15 @@ void AssemblyWriter::printModule(const Module *M) {
     Out << "target triple = \"" << M->getTargetTriple() << "\"\n";
   
   // Loop over the dependent libraries and emit them
-  Module::lib_iterator LI= M->lib_begin();
-  Module::lib_iterator LE= M->lib_end();
+  Module::lib_iterator LI = M->lib_begin();
+  Module::lib_iterator LE = M->lib_end();
   if (LI != LE) {
-    Out << "deplibs = [\n";
-    while ( LI != LE ) {
+    Out << "deplibs = [ ";
+    while (LI != LE) {
       Out << "\"" << *LI << "\"";
       ++LI;
-      if ( LI != LE )
-        Out << ",\n";
+      if (LI != LE)
+        Out << ", ";
     }
     Out << " ]\n";
   }