[llvm-commits] CVS: llvm/lib/Analysis/CFGPrinter.cpp

Misha Brukman brukman at cs.uiuc.edu
Thu Aug 4 07:17:00 PDT 2005



Changes in directory llvm/lib/Analysis:

CFGPrinter.cpp updated: 1.13 -> 1.14
---
Log message:

* Unbreak optimized build (noticed by Eric van Riet Paap)
* Comment #endif clauses for readability


---
Diffs of the changes:  (+5 -3)

 CFGPrinter.cpp |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)


Index: llvm/lib/Analysis/CFGPrinter.cpp
diff -u llvm/lib/Analysis/CFGPrinter.cpp:1.13 llvm/lib/Analysis/CFGPrinter.cpp:1.14
--- llvm/lib/Analysis/CFGPrinter.cpp:1.13	Wed Aug  3 12:55:05 2005
+++ llvm/lib/Analysis/CFGPrinter.cpp	Thu Aug  4 09:16:48 2005
@@ -160,7 +160,7 @@
     system(("rm " + Filename).c_str());
     return;
   }
-#endif
+#endif  // HAVE_GRAPHVIZ
   
 #ifdef HAVE_GV
   std::cerr << "Running 'dot' program... " << std::flush;
@@ -173,12 +173,14 @@
   }
   system(("rm " + Filename + " /tmp/cfg.tempgraph.ps").c_str());
   return;
-#endif
-#endif
+#endif  // HAVE_GV
+#endif  // NDEBUG
   std::cerr << "Function::viewCFG is only available in debug builds on "
             << "systems with Graphviz or gv!\n";
 
+#ifndef NDEBUG
   system(("rm " + Filename).c_str());
+#endif
 }
 
 /// viewCFGOnly - This function is meant for use from the debugger.  It works






More information about the llvm-commits mailing list