]> granicus.if.org Git - clang/commitdiff
Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 22:18:43 +0000 (22:18 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 17 Mar 2009 22:18:43 +0000 (22:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.h
lib/Driver/Tools.h

index be476d78ed6c8bcdf1abd2d716aa52b0d8d25ab9..c5e01ba5ac4d6a711c9b72e7b49dd31824c3a648 100644 (file)
 
 namespace clang {
 namespace driver {
-namespace toolchains VISIBILITY_HIDDEN {
+namespace toolchains {
 
   /// Generic_GCC - A tool chain using the 'gcc' command to perform
   /// all subcommands; this relies on gcc translating the majority of
   /// command line options.
-class Generic_GCC : public ToolChain {
+class VISIBILITY_HIDDEN Generic_GCC : public ToolChain {
   mutable llvm::DenseMap<unsigned, Tool*> Tools;
 
 public:
index 71ca2e900872b870279c0063a8dd5fca44c986fb..6f6b3dffbcbf4d5c9fd99e466d1a87ce26e0a620 100644 (file)
@@ -16,9 +16,9 @@
 
 namespace clang {
 namespace driver {
-namespace tools VISIBILITY_HIDDEN {
+namespace tools {
 
-  class Clang : public Tool {
+  class VISIBILITY_HIDDEN Clang : public Tool {
   public:
     Clang(const ToolChain &TC) : Tool(TC) {}
 
@@ -27,7 +27,7 @@ namespace tools VISIBILITY_HIDDEN {
     virtual bool hasIntegratedCPP() const { return true; }
   };
 
-  class GCC_Preprocess : public Tool {
+  class VISIBILITY_HIDDEN GCC_Preprocess : public Tool {
   public:
     GCC_Preprocess(const ToolChain &TC) : Tool(TC) {}
 
@@ -36,7 +36,7 @@ namespace tools VISIBILITY_HIDDEN {
     virtual bool hasIntegratedCPP() const { return false; }
   };
 
-  class GCC_Precompile : public Tool  {
+  class VISIBILITY_HIDDEN GCC_Precompile : public Tool  {
   public:
     GCC_Precompile(const ToolChain &TC) : Tool(TC) {}
 
@@ -45,7 +45,7 @@ namespace tools VISIBILITY_HIDDEN {
     virtual bool hasIntegratedCPP() const { return true; }
   };
 
-  class GCC_Compile : public Tool  {
+  class VISIBILITY_HIDDEN GCC_Compile : public Tool  {
   public:
     GCC_Compile(const ToolChain &TC) : Tool(TC) {}
 
@@ -54,7 +54,7 @@ namespace tools VISIBILITY_HIDDEN {
     virtual bool hasIntegratedCPP() const { return true; }
   };
 
-  class GCC_Assemble : public Tool  {
+  class VISIBILITY_HIDDEN GCC_Assemble : public Tool  {
   public:
     GCC_Assemble(const ToolChain &TC) : Tool(TC) {}
 
@@ -63,7 +63,7 @@ namespace tools VISIBILITY_HIDDEN {
     virtual bool hasIntegratedCPP() const { return false; }
   };
 
-  class GCC_Link : public Tool  {
+  class VISIBILITY_HIDDEN GCC_Link : public Tool  {
   public:
     GCC_Link(const ToolChain &TC) : Tool(TC) {}