From 0012351e82470f6357b572f1ca2fa626d1a25d6f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 17 Sep 2007 06:16:32 +0000 Subject: [PATCH] make var in anon namespace static. Use \n instead of std::endl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42020 91177308-0d34-0410-b5e6-96231b3b80d8 --- AST/CFG.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/AST/CFG.cpp b/AST/CFG.cpp index cdde4af169..3ccaa0556f 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -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 } -- 2.50.1