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

Chris Lattner sabre at nondot.org
Sun Sep 16 23:16:34 PDT 2007


Author: lattner
Date: Mon Sep 17 01:16:32 2007
New Revision: 42020

URL: http://llvm.org/viewvc/llvm-project?rev=42020&view=rev
Log:
make var in anon namespace static.  Use \n instead of std::endl.

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=42020&r1=42019&r2=42020&view=diff

==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Mon Sep 17 01:16:32 2007
@@ -1270,9 +1270,7 @@
 
 
 #ifndef NDEBUG
-namespace {
-  StmtPrinterHelper* GraphHelper;  
-}
+static StmtPrinterHelper* GraphHelper;  
 #endif
 
 void CFG::viewCFG() const {
@@ -1283,7 +1281,7 @@
   GraphHelper = NULL;
 #else
   std::cerr << "CFG::viewCFG is only available in debug builds on "
-  << "systems with Graphviz or gv!" << std::endl;
+            << "systems with Graphviz or gv!\";
 #endif
 }
 





More information about the cfe-commits mailing list