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

Ted Kremenek kremenek at apple.com
Tue Jan 8 10:15:10 PST 2008


Author: kremenek
Date: Tue Jan  8 12:15:10 2008
New Revision: 45749

URL: http://llvm.org/viewvc/llvm-project?rev=45749&view=rev
Log:
Added VISIBILITY_HIDDEN to classes/structs in 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=45749&r1=45748&r2=45749&view=diff

==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Tue Jan  8 12:15:10 2008
@@ -20,6 +20,7 @@
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/GraphWriter.h"
 #include "llvm/Support/Streams.h"
+#include "llvm/Support/Compiler.h"
 #include <iomanip>
 #include <algorithm>
 #include <sstream>
@@ -31,7 +32,7 @@
 // SaveAndRestore - A utility class that uses RIIA to save and restore
 //  the value of a variable.
 template<typename T>
-struct SaveAndRestore {
+struct VISIBILITY_HIDDEN SaveAndRestore {
   SaveAndRestore(T& x) : X(x), old_value(x) {}
   ~SaveAndRestore() { X = old_value; }
   T get() { return old_value; }
@@ -55,7 +56,7 @@
 ///  allows us to nicely capture implicit fall-throughs without extra
 ///  basic blocks.
 ///
-class CFGBuilder : public StmtVisitor<CFGBuilder,CFGBlock*> {    
+class VISIBILITY_HIDDEN CFGBuilder : public StmtVisitor<CFGBuilder,CFGBlock*> {    
   CFG* cfg;
   CFGBlock* Block;
   CFGBlock* Succ;
@@ -1039,7 +1040,7 @@
 
 namespace {
 
-class StmtPrinterHelper : public PrinterHelper  {
+class VISIBILITY_HIDDEN StmtPrinterHelper : public PrinterHelper  {
                           
   typedef llvm::DenseMap<Stmt*,std::pair<unsigned,unsigned> > StmtMapTy;
   StmtMapTy StmtMap;
@@ -1078,9 +1079,9 @@
   }
 };
 
-class CFGBlockTerminatorPrint : public StmtVisitor<CFGBlockTerminatorPrint,
-                                                    void > 
-{
+class VISIBILITY_HIDDEN CFGBlockTerminatorPrint
+  : public StmtVisitor<CFGBlockTerminatorPrint,void> {
+  
   std::ostream& OS;
   StmtPrinterHelper* Helper;
 public:





More information about the cfe-commits mailing list