]> granicus.if.org Git - clang/commitdiff
Remove remaining VISIBILITY_HIDDEN from anonymous namespaces.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Nov 2009 19:45:26 +0000 (19:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 28 Nov 2009 19:45:26 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90044 91177308-0d34-0410-b5e6-96231b3b80d8

20 files changed:
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprConstant.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGVtable.cpp
lib/CodeGen/Mangle.cpp
lib/CodeGen/ModuleBuilder.cpp
lib/Index/Analyzer.cpp
lib/Index/DeclReferenceMap.cpp
lib/Index/ResolveLocation.cpp
lib/Index/SelectorMap.cpp
lib/Lex/PTHLexer.cpp
lib/Parse/ParseTemplate.cpp
lib/Sema/CodeCompleteConsumer.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateDeduction.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp

index 9a2aae7f8b17aa0dc5f31e31575433c3f3180620..d225d907c8ae666ef31f8317e43dba24fc81c0c0 100644 (file)
@@ -20,7 +20,6 @@
 #include "llvm/Constants.h"
 #include "llvm/Function.h"
 #include "llvm/GlobalVariable.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Intrinsics.h"
 using namespace clang;
 using namespace CodeGen;
@@ -30,7 +29,7 @@ using namespace CodeGen;
 //===----------------------------------------------------------------------===//
 
 namespace  {
-class VISIBILITY_HIDDEN AggExprEmitter : public StmtVisitor<AggExprEmitter> {
+class AggExprEmitter : public StmtVisitor<AggExprEmitter> {
   CodeGenFunction &CGF;
   CGBuilderTy &Builder;
   llvm::Value *DestPtr;
index 9e81e4fbeabee6e2de3ce80f58b828cd5209cf10..83becd94424b60d7df1ef42c52befefde37b461b 100644 (file)
@@ -18,7 +18,6 @@
 #include "llvm/Constants.h"
 #include "llvm/Function.h"
 #include "llvm/ADT/SmallString.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 using namespace CodeGen;
 
@@ -29,7 +28,7 @@ using namespace CodeGen;
 typedef CodeGenFunction::ComplexPairTy ComplexPairTy;
 
 namespace  {
-class VISIBILITY_HIDDEN ComplexExprEmitter
+class ComplexExprEmitter
   : public StmtVisitor<ComplexExprEmitter, ComplexPairTy> {
   CodeGenFunction &CGF;
   CGBuilderTy &Builder;
index 54e3fa4744d5549171ecec900beaa2a630f3f60e..9289f78d557a090e7fd53fb65ade52de5afd4acd 100644 (file)
 #include "llvm/Constants.h"
 #include "llvm/Function.h"
 #include "llvm/GlobalVariable.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Target/TargetData.h"
 using namespace clang;
 using namespace CodeGen;
 
 namespace  {
-
-class VISIBILITY_HIDDEN ConstStructBuilder {
+class ConstStructBuilder {
   CodeGenModule &CGM;
   CodeGenFunction *CGF;
 
@@ -377,7 +375,7 @@ public:
   }
 };
 
-class VISIBILITY_HIDDEN ConstExprEmitter :
+class ConstExprEmitter :
   public StmtVisitor<ConstExprEmitter, llvm::Constant*> {
   CodeGenModule &CGM;
   CodeGenFunction *CGF;
index 120db43d44fab20937dbbe6a77a741d9645585cb..3cadb39e2f1d8f29a54b39d7a4c6a7b52c2bc88d 100644 (file)
@@ -24,7 +24,6 @@
 #include "llvm/GlobalVariable.h"
 #include "llvm/Intrinsics.h"
 #include "llvm/Module.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/CFG.h"
 #include "llvm/Target/TargetData.h"
 #include <cstdarg>
@@ -45,7 +44,7 @@ struct BinOpInfo {
 };
 
 namespace {
-class VISIBILITY_HIDDEN ScalarExprEmitter
+class ScalarExprEmitter
   : public StmtVisitor<ScalarExprEmitter, Value*> {
   CodeGenFunction &CGF;
   CGBuilderTy &Builder;
index a26a697250e8321089d5f6c07d88f77a8ac5f0af..eb8a1dbb4d4aa8761a7f1672c4990d97b602f387 100644 (file)
@@ -13,7 +13,6 @@
 
 #include "CodeGenModule.h"
 #include "CodeGenFunction.h"
-
 #include "clang/AST/CXXInheritance.h"
 #include "clang/AST/RecordLayout.h"
 #include "llvm/ADT/DenseSet.h"
@@ -23,8 +22,7 @@ using namespace clang;
 using namespace CodeGen;
 
 namespace {
-
-class VISIBILITY_HIDDEN VtableBuilder {
+class VtableBuilder {
 public:
   /// Index_t - Vtable index type.
   typedef uint64_t Index_t;
index 4b7ab4f20e1f13e45122e20a0e56227a4cdbeb77..eabdbbfde9e5bbc8379c8a66b7f053d5894f84bb 100644 (file)
@@ -23,7 +23,6 @@
 #include "clang/AST/ExprCXX.h"
 #include "clang/Basic/SourceManager.h"
 #include "llvm/ADT/StringExtras.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "CGVtable.h"
index 1d8f31dd9b24b0c7635dcdd9413b5755fcb71ed0..017059df80facae104f8f29c3673491b50d92642 100644 (file)
 #include "llvm/LLVMContext.h"
 #include "llvm/Module.h"
 #include "llvm/Target/TargetData.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/ADT/OwningPtr.h"
 using namespace clang;
 
-
 namespace {
-  class VISIBILITY_HIDDEN CodeGeneratorImpl : public CodeGenerator {
+  class CodeGeneratorImpl : public CodeGenerator {
     Diagnostic &Diags;
     llvm::OwningPtr<const llvm::TargetData> TD;
     ASTContext *Ctx;
index 300a469220566d95a91055a237cc692a81c83510..fb3529d5405cf954f155ad8f6456999df397cdb9 100644 (file)
@@ -23,7 +23,6 @@
 #include "clang/AST/DeclObjC.h"
 #include "clang/AST/ExprObjC.h"
 #include "llvm/ADT/SmallSet.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 using namespace idx;
 
@@ -33,7 +32,7 @@ namespace  {
 // DeclEntityAnalyzer Implementation
 //===----------------------------------------------------------------------===//
 
-class VISIBILITY_HIDDEN DeclEntityAnalyzer : public TranslationUnitHandler {
+class DeclEntityAnalyzer : public TranslationUnitHandler {
   Entity Ent;
   TULocationHandler &TULocHandler;
 
@@ -57,7 +56,7 @@ public:
 // RefEntityAnalyzer Implementation
 //===----------------------------------------------------------------------===//
 
-class VISIBILITY_HIDDEN RefEntityAnalyzer : public TranslationUnitHandler {
+class RefEntityAnalyzer : public TranslationUnitHandler {
   Entity Ent;
   TULocationHandler &TULocHandler;
 
@@ -87,7 +86,7 @@ public:
 
 /// \brief Accepts an ObjC method and finds all message expressions that this
 /// method may respond to.
-class VISIBILITY_HIDDEN RefSelectorAnalyzer : public TranslationUnitHandler {
+class RefSelectorAnalyzer : public TranslationUnitHandler {
   Program &Prog;
   TULocationHandler &TULocHandler;
 
@@ -219,7 +218,7 @@ public:
 
 /// \brief Accepts an ObjC message expression and finds all methods that may
 /// respond to it.
-class VISIBILITY_HIDDEN MessageAnalyzer : public TranslationUnitHandler {
+class MessageAnalyzer : public TranslationUnitHandler {
   Program &Prog;
   TULocationHandler &TULocHandler;
 
index 366cf1b10830734f382bd33e11d4c23d9e539a74..d6e30ab39658d4c4214bdc32ea1be16c96639890 100644 (file)
 #include "clang/Index/DeclReferenceMap.h"
 #include "clang/Index/ASTLocation.h"
 #include "ASTVisitor.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 using namespace idx;
 
 namespace {
 
-class VISIBILITY_HIDDEN RefMapper : public ASTVisitor<RefMapper> {
+class RefMapper : public ASTVisitor<RefMapper> {
   DeclReferenceMap::MapTy &Map;
 
 public:
index ed905f364f0de9b42da55ed33fe9be390db3ba6c..c7379f7a83520e57f26a846dc15b1f082e5b347f 100644 (file)
 #include "clang/AST/StmtVisitor.h"
 #include "clang/Lex/Lexer.h"
 #include "clang/Basic/SourceManager.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 using namespace idx;
 
 namespace {
 
 /// \brief Base for the LocResolver classes. Mostly does source range checking.
-class VISIBILITY_HIDDEN LocResolverBase {
+class LocResolverBase {
 protected:
   ASTContext &Ctx;
   SourceLocation Loc;
@@ -83,7 +82,7 @@ public:
 
 /// \brief Searches a statement for the ASTLocation that corresponds to a source
 /// location.
-class VISIBILITY_HIDDEN StmtLocResolver : public LocResolverBase,
+class StmtLocResolver : public LocResolverBase,
                                           public StmtVisitor<StmtLocResolver,
                                                              ASTLocation     > {
   Decl * const Parent;
@@ -100,7 +99,7 @@ public:
 
 /// \brief Searches a declaration for the ASTLocation that corresponds to a
 /// source location.
-class VISIBILITY_HIDDEN DeclLocResolver : public LocResolverBase,
+class DeclLocResolver : public LocResolverBase,
                                           public DeclVisitor<DeclLocResolver,
                                                              ASTLocation     > {
 public:
index 325b3711e8049d5854a10c772332fdbd83da364e..0f11e31a0dec9f13fdec9806a229d4d4d4d2553c 100644 (file)
 
 #include "clang/Index/SelectorMap.h"
 #include "ASTVisitor.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 using namespace idx;
 
 namespace {
 
-class VISIBILITY_HIDDEN SelMapper : public ASTVisitor<SelMapper> {
+class SelMapper : public ASTVisitor<SelMapper> {
   SelectorMap::SelMethMapTy &SelMethMap;
   SelectorMap::SelRefMapTy &SelRefMap;
 
index 4fc3a591d910486b2a42e14a57d7ccb3a1ddd52c..a64008ab1806a842247e55aefa9155871bafaa74 100644 (file)
@@ -24,7 +24,6 @@
 #include "llvm/ADT/OwningPtr.h"
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/StringMap.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include <sys/stat.h>
 using namespace clang;
@@ -286,7 +285,7 @@ SourceLocation PTHLexer::getSourceLocation() {
 ///  to map from FileEntry objects managed by FileManager to offsets within
 ///  the PTH file.
 namespace {
-class VISIBILITY_HIDDEN PTHFileData {
+class PTHFileData {
   const uint32_t TokenOff;
   const uint32_t PPCondOff;
 public:
@@ -298,7 +297,7 @@ public:
 };
 
 
-class VISIBILITY_HIDDEN PTHFileLookupCommonTrait {
+class PTHFileLookupCommonTrait {
 public:
   typedef std::pair<unsigned char, const char*> internal_key_type;
 
@@ -319,7 +318,7 @@ public:
   }
 };
 
-class VISIBILITY_HIDDEN PTHFileLookupTrait : public PTHFileLookupCommonTrait {
+class PTHFileLookupTrait : public PTHFileLookupCommonTrait {
 public:
   typedef const FileEntry* external_key_type;
   typedef PTHFileData      data_type;
@@ -341,7 +340,7 @@ public:
   }
 };
 
-class VISIBILITY_HIDDEN PTHStringLookupTrait {
+class PTHStringLookupTrait {
 public:
   typedef uint32_t
           data_type;
@@ -598,7 +597,7 @@ PTHLexer *PTHManager::CreateLexer(FileID FID) {
 //===----------------------------------------------------------------------===//
 
 namespace {
-class VISIBILITY_HIDDEN PTHStatData {
+class PTHStatData {
 public:
   const bool hasStat;
   const ino_t ino;
@@ -614,7 +613,7 @@ public:
     : hasStat(false), ino(0), dev(0), mode(0), mtime(0), size(0) {}
 };
 
-class VISIBILITY_HIDDEN PTHStatLookupTrait : public PTHFileLookupCommonTrait {
+class PTHStatLookupTrait : public PTHFileLookupCommonTrait {
 public:
   typedef const char* external_key_type;  // const char*
   typedef PTHStatData data_type;
@@ -647,7 +646,7 @@ public:
   }
 };
 
-class VISIBILITY_HIDDEN PTHStatCache : public StatSysCallCache {
+class PTHStatCache : public StatSysCallCache {
   typedef OnDiskChainedHashTable<PTHStatLookupTrait> CacheTy;
   CacheTy Cache;
 
index d2f13f24793a109176ea42a7e56124a523fd7e56..0dbf37c830fce3d50207a25c95fda840cbeef05d 100644 (file)
@@ -16,7 +16,6 @@
 #include "clang/Parse/DeclSpec.h"
 #include "clang/Parse/Scope.h"
 #include "clang/Parse/Template.h"
-#include "llvm/Support/Compiler.h"
 using namespace clang;
 
 /// \brief Parse a template declaration, explicit instantiation, or
@@ -34,7 +33,7 @@ Parser::ParseDeclarationStartingWithTemplate(unsigned Context,
 
 /// \brief RAII class that manages the template parameter depth.
 namespace {
-  class VISIBILITY_HIDDEN TemplateParameterDepthCounter {
+  class TemplateParameterDepthCounter {
     unsigned &Depth;
     unsigned AddedLevels;
 
index a9d83010576a6f90467fec8aef1cb0019c37aee9..b0a7a664f5aec65daaa36af4a465bc90e8b3c9b9 100644 (file)
@@ -17,7 +17,6 @@
 #include "Sema.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/StringSwitch.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 #include <cstring>
index a6bb401a88d08ba64dc1e3b620559f880ea7d9eb..34ab74295888a501f266159d90d62a76bab3f258 100644 (file)
@@ -24,8 +24,6 @@
 #include "clang/Basic/PartialDiagnostic.h"
 #include "clang/Lex/Preprocessor.h"
 #include "llvm/ADT/STLExtras.h"
-#include "llvm/Support/Compiler.h"
-#include <algorithm> // for std::equal
 #include <map>
 #include <set>
 
@@ -41,7 +39,7 @@ namespace {
   /// contains any ill-formed subexpressions. For example, this will
   /// diagnose the use of local variables or parameters within the
   /// default argument expression.
-  class VISIBILITY_HIDDEN CheckDefaultArgumentVisitor
+  class CheckDefaultArgumentVisitor
     : public StmtVisitor<CheckDefaultArgumentVisitor, bool> {
     Expr *DefaultArg;
     Sema *S;
@@ -1715,7 +1713,7 @@ void Sema::ActOnDefaultCtorInitializers(DeclPtrTy CDtorDecl) {
 namespace {
   /// PureVirtualMethodCollector - traverses a class and its superclasses
   /// and determines if it has any pure virtual methods.
-  class VISIBILITY_HIDDEN PureVirtualMethodCollector {
+  class PureVirtualMethodCollector {
     ASTContext &Context;
 
   public:
@@ -1862,7 +1860,7 @@ bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
 }
 
 namespace {
-  class VISIBILITY_HIDDEN AbstractClassUsageDiagnoser
+  class AbstractClassUsageDiagnoser
     : public DeclVisitor<AbstractClassUsageDiagnoser, bool> {
     Sema &SemaRef;
     CXXRecordDecl *AbstractClass;
index 49050be8c51887cce3992ecbea91e5389486bd2c..6b1857a0dc1e7023f287d5a2d36f85f61e2ccd71 100644 (file)
@@ -23,7 +23,6 @@
 #include "clang/Basic/PartialDiagnostic.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/ADT/STLExtras.h"
-#include "llvm/Support/Compiler.h"
 #include <algorithm>
 #include <cstdio>
 
index 2e4eed8b2860f30cbb05559cb5139547a923b3b0..9dad2f63c87abf077629e15c498b50986181691b 100644 (file)
@@ -20,7 +20,6 @@
 #include "clang/Parse/Template.h"
 #include "clang/Basic/LangOptions.h"
 #include "clang/Basic/PartialDiagnostic.h"
-#include "llvm/Support/Compiler.h"
 #include "llvm/ADT/StringExtras.h"
 using namespace clang;
 
@@ -4854,7 +4853,7 @@ Sema::CheckTypenameType(NestedNameSpecifier *NNS, const IdentifierInfo &II,
 
 namespace {
   // See Sema::RebuildTypeInCurrentInstantiation
-  class VISIBILITY_HIDDEN CurrentInstantiationRebuilder
+  class CurrentInstantiationRebuilder
     : public TreeTransform<CurrentInstantiationRebuilder> {
     SourceLocation Loc;
     DeclarationName Entity;
index 06b2dec590b2297f52b5d862d8266ccf76ee85cb..613ffde5734a02e3d8b1f3c16bc1eae8deb09c1c 100644 (file)
@@ -17,7 +17,6 @@
 #include "clang/AST/Expr.h"
 #include "clang/AST/ExprCXX.h"
 #include "clang/Parse/DeclSpec.h"
-#include "llvm/Support/Compiler.h"
 #include <algorithm>
 
 namespace clang {
index dd92218c6b7047c66a28541b7d544b02c1286e7c..623cde87a9c8a7ef1baa897b8b779f23e1cad818 100644 (file)
@@ -19,7 +19,6 @@
 #include "clang/AST/DeclTemplate.h"
 #include "clang/Parse/DeclSpec.h"
 #include "clang/Basic/LangOptions.h"
-#include "llvm/Support/Compiler.h"
 
 using namespace clang;
 
@@ -492,7 +491,7 @@ bool Sema::isSFINAEContext() const {
 // Template Instantiation for Types
 //===----------------------------------------------------------------------===/
 namespace {
-  class VISIBILITY_HIDDEN TemplateInstantiator
+  class TemplateInstantiator
     : public TreeTransform<TemplateInstantiator> {
     const MultiLevelTemplateArgumentList &TemplateArgs;
     SourceLocation Loc;
index bda19f1e988f81e1f974c7eeeef285faa5a9f28a..ba75ee90b0fba435412b4309079692d61470d9e0 100644 (file)
 #include "clang/AST/Expr.h"
 #include "clang/Basic/PrettyStackTrace.h"
 #include "clang/Lex/Preprocessor.h"
-#include "llvm/Support/Compiler.h"
 
 using namespace clang;
 
 namespace {
-  class VISIBILITY_HIDDEN TemplateDeclInstantiator
+  class TemplateDeclInstantiator
     : public DeclVisitor<TemplateDeclInstantiator, Decl *> {
     Sema &SemaRef;
     DeclContext *Owner;