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

Ted Kremenek kremenek at apple.com
Thu Aug 23 14:26:20 PDT 2007


Author: kremenek
Date: Thu Aug 23 16:26:19 2007
New Revision: 41334

URL: http://llvm.org/viewvc/llvm-project?rev=41334&view=rev
Log:
moved CFGBuilder into an anonymous namespace

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=41334&r1=41333&r2=41334&view=diff

==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Thu Aug 23 16:26:19 2007
@@ -23,17 +23,16 @@
 
 namespace {
 
-  // SaveAndRestore - A utility class that uses RIIA to save and restore
-  //  the value of a variable.
-  template<typename T>
-  struct SaveAndRestore {
-    SaveAndRestore(T& x) : X(x), old_value(x) {}
-    ~SaveAndRestore() { X = old_value; }
-    
-    T& X;
-    T old_value;
-  };
-}
+// SaveAndRestore - A utility class that uses RIIA to save and restore
+//  the value of a variable.
+template<typename T>
+struct SaveAndRestore {
+  SaveAndRestore(T& x) : X(x), old_value(x) {}
+  ~SaveAndRestore() { X = old_value; }
+  
+  T& X;
+  T old_value;
+};
   
 /// CFGBuilder - This class is implements CFG construction from an AST.
 ///   The builder is stateful: an instance of the builder should be used to only
@@ -607,7 +606,7 @@
   }
 
 };
-
+} // end anonymous namespace
 
 /// createBlock - Constructs and adds a new CFGBlock to the CFG.  The
 ///  block has no successors or predecessors.  If this is the first block





More information about the cfe-commits mailing list