[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Sep 13 21:51:54 PDT 2004
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.159 -> 1.160
---
Log message:
Don't print newlines between each library in the deplibs list.
---
Diffs of the changes: (+6 -6)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.159 llvm/lib/VMCore/AsmWriter.cpp:1.160
--- llvm/lib/VMCore/AsmWriter.cpp:1.159 Mon Sep 13 18:44:23 2004
+++ llvm/lib/VMCore/AsmWriter.cpp Mon Sep 13 23:51:44 2004
@@ -765,15 +765,15 @@
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";
}
More information about the llvm-commits
mailing list