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

Bill Wendling isanbard at gmail.com
Mon Jul 25 17:14:30 PDT 2011


Author: void
Date: Mon Jul 25 19:14:30 2011
New Revision: 136025

URL: http://llvm.org/viewvc/llvm-project?rev=136025&view=rev
Log:
Cleanup the ASM printing of landingpad. Emit a newline for a new clause.

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=136025&r1=136024&r2=136025&view=diff
==============================================================================
--- llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp (original)
+++ llvm/branches/exception-handling-rewrite/lib/VMCore/AsmWriter.cpp Mon Jul 25 19:14:30 2011
@@ -1716,15 +1716,17 @@
     writeOperand(LPI->getPersonalityFn(), true); Out << '\n';
 
     for (unsigned i = 0, e = LPI->getNumClauses(); i != e; ) {
+      if (i != 0) Out << "\n";
+
       SmallVector<const Value*, 8> Vals;
       LandingPadInst::ClauseType CT = LPI->getClauseType(i);
       for (; i != e && LPI->getClauseType(i) == CT; ++i)
         Vals.push_back(LPI->getClauseValue(i));
 
       if (CT == LandingPadInst::Catch)
-        Out << "        catch ";
+        Out << "          catch ";
       else
-        Out << "        filter ";
+        Out << "          filter ";
 
       for (unsigned II = 0, IE = Vals.size(); II != IE; ++II) {
         if (II != 0) Out << ", ";





More information about the llvm-branch-commits mailing list