Don't print newlines between passes in the pass list.

Note to self: sentences end with ".", not "...".
Note to reid: sentences end with ".", not "".   :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16332 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-09-14 05:06:58 +00:00
parent cfe97b78e7
commit 44da7d7976

View File

@ -764,13 +764,13 @@ void AssemblyWriter::printModule(const Module *M) {
if (!M->getTargetTriple().empty()) if (!M->getTargetTriple().empty())
Out << "target triple = \"" << M->getTargetTriple() << "\"\n"; 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 LI = M->lib_begin();
Module::lib_iterator LE = M->lib_end(); Module::lib_iterator LE = M->lib_end();
if (LI != LE) { if (LI != LE) {
Out << "deplibs = [ "; Out << "deplibs = [ ";
while (LI != LE) { while (LI != LE) {
Out << "\"" << *LI << "\""; Out << '"' << *LI << '"';
++LI; ++LI;
if (LI != LE) if (LI != LE)
Out << ", "; Out << ", ";
@ -778,21 +778,21 @@ void AssemblyWriter::printModule(const Module *M) {
Out << " ]\n"; 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 PI = M->pass_begin();
Module::pass_iterator PE = M->pass_end(); Module::pass_iterator PE = M->pass_end();
if (LI != LE) { if (LI != LE) {
Out << "passes = [\n"; Out << "passes = [ ";
while (LI != LE) { while (LI != LE) {
Out << "\"" << *LI << "\""; Out << '"' << *LI << '"';
++LI; ++LI;
if (LI != LE) if (LI != LE)
Out << ",\n"; Out << ", ";
} }
Out << " ]\n"; Out << " ]\n";
} }
// Loop over the symbol table, emitting all named constants... // Loop over the symbol table, emitting all named constants.
printSymbolTable(M->getSymbolTable()); printSymbolTable(M->getSymbolTable());
for (Module::const_giterator I = M->gbegin(), E = M->gend(); I != E; ++I) for (Module::const_giterator I = M->gbegin(), E = M->gend(); I != E; ++I)
@ -800,7 +800,7 @@ void AssemblyWriter::printModule(const Module *M) {
Out << "\nimplementation ; Functions:\n"; 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) for (Module::const_iterator I = M->begin(), E = M->end(); I != E; ++I)
printFunction(I); printFunction(I);
} }