* Unbreak optimized build (noticed by Eric van Riet Paap)
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 4 Aug 2005 14:16:48 +0000 (14:16 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 4 Aug 2005 14:16:48 +0000 (14:16 +0000)
* Comment #endif clauses for readability

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22646 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFGPrinter.cpp

index 7f83a98b4328ebaba69fb00cd1cb563a7476f007..5a236f2bc3ee710c600f34fe6945de98daacfab3 100644 (file)
@@ -160,7 +160,7 @@ void Function::viewCFG() const {
     system(("rm " + Filename).c_str());
     return;
   }
-#endif
+#endif  // HAVE_GRAPHVIZ
   
 #ifdef HAVE_GV
   std::cerr << "Running 'dot' program... " << std::flush;
@@ -173,12 +173,14 @@ void Function::viewCFG() const {
   }
   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