[llvm-branch-commits] [llvm-branch] r136142 - /llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp

Bill Wendling isanbard at gmail.com
Tue Jul 26 13:54:59 PDT 2011


Author: void
Date: Tue Jul 26 15:54:58 2011
New Revision: 136142

URL: http://llvm.org/viewvc/llvm-project?rev=136142&view=rev
Log:
Cleanup: Make sure that the newline isn't printed unless thereare clauses.

Modified:
    llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp

Modified: llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp?rev=136142&r1=136141&r2=136142&view=diff
==============================================================================
--- llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp Tue Jul 26 15:54:58 2011
@@ -1742,10 +1742,10 @@
     writeOperand(LPI->getPersonalityFn(), true); Out << '\n';
 
     if (LPI->isCleanup())
-      Out << "          cleanup\n";
+      Out << "          cleanup";
 
     for (unsigned i = 0, e = LPI->getNumClauses(); i != e; ) {
-      if (i != 0) Out << "\n";
+      if (i != 0 || LPI->isCleanup()) Out << "\n";
 
       SmallVector<const Value*, 8> Vals;
       LandingPadInst::ClauseType CT = LPI->getClauseType(i);





More information about the llvm-branch-commits mailing list