[cfe-commits] r41623 - /cfe/trunk/AST/CFG.cpp

Ted Kremenek kremenek at apple.com
Thu Aug 30 14:28:02 PDT 2007


Author: kremenek
Date: Thu Aug 30 16:28:02 2007
New Revision: 41623

URL: http://llvm.org/viewvc/llvm-project?rev=41623&view=rev
Log:
Minor cleanups to pretty-printing for loops in CFGs.

Modified:
    cfe/trunk/AST/CFG.cpp

Modified: cfe/trunk/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/CFG.cpp?rev=41623&r1=41622&r2=41623&view=diff

==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Thu Aug 30 16:28:02 2007
@@ -938,11 +938,11 @@
   
   void VisitForStmt(ForStmt* F) {
     OS << "for (" ;
-    if (Stmt* I = F->getInit()) I->printPretty(OS);
-    OS << " ; ";
+    if (F->getInit()) OS << "...";
+    OS << "; ";
     if (Stmt* C = F->getCond()) C->printPretty(OS);
-    OS << " ; ";
-    if (Stmt* I = F->getInc()) I->printPretty(OS);
+    OS << "; ";
+    if (F->getInc()) OS << "...";
     OS << ")\n";                                                       
   }
   





More information about the cfe-commits mailing list