From: Ted Kremenek Date: Tue, 8 Jan 2008 18:15:10 +0000 (+0000) Subject: Added VISIBILITY_HIDDEN to classes/structs in anonymous namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6fa9b88e2c3d47d606a273df2f8d03509bcff0b9;p=clang Added VISIBILITY_HIDDEN to classes/structs in anonymous namespace. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45749 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/CFG.cpp b/AST/CFG.cpp index df0b12d1f6..3be5f7cd4b 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -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 #include #include @@ -31,7 +32,7 @@ namespace { // SaveAndRestore - A utility class that uses RIIA to save and restore // the value of a variable. template -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 @@ struct SaveAndRestore { /// allows us to nicely capture implicit fall-throughs without extra /// basic blocks. /// -class CFGBuilder : public StmtVisitor { +class VISIBILITY_HIDDEN CFGBuilder : public StmtVisitor { CFG* cfg; CFGBlock* Block; CFGBlock* Succ; @@ -1039,7 +1040,7 @@ CFG::~CFG() { namespace { -class StmtPrinterHelper : public PrinterHelper { +class VISIBILITY_HIDDEN StmtPrinterHelper : public PrinterHelper { typedef llvm::DenseMap > StmtMapTy; StmtMapTy StmtMap; @@ -1078,9 +1079,9 @@ public: } }; -class CFGBlockTerminatorPrint : public StmtVisitor -{ +class VISIBILITY_HIDDEN CFGBlockTerminatorPrint + : public StmtVisitor { + std::ostream& OS; StmtPrinterHelper* Helper; public: