]> granicus.if.org Git - clang/commitdiff
make var in anon namespace static. Use \n instead of std::endl.
authorChris Lattner <sabre@nondot.org>
Mon, 17 Sep 2007 06:16:32 +0000 (06:16 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 17 Sep 2007 06:16:32 +0000 (06:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42020 91177308-0d34-0410-b5e6-96231b3b80d8

AST/CFG.cpp

index cdde4af16939724964fdf0812dff057c7d668f5e..3ccaa0556f2365702bd24092277c5f8dee67a90f 100644 (file)
@@ -1270,9 +1270,7 @@ bool CFG::hasImplicitControlFlow(const Stmt* S) {
 
 
 #ifndef NDEBUG
-namespace {
-  StmtPrinterHelper* GraphHelper;  
-}
+static StmtPrinterHelper* GraphHelper;  
 #endif
 
 void CFG::viewCFG() const {
@@ -1283,7 +1281,7 @@ void CFG::viewCFG() const {
   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
 }