[cfe-commits] r67110 - in /cfe/trunk/lib/Driver: ToolChains.h Tools.h

Daniel Dunbar daniel at zuster.org
Tue Mar 17 15:18:43 PDT 2009


Author: ddunbar
Date: Tue Mar 17 17:18:43 2009
New Revision: 67110

URL: http://llvm.org/viewvc/llvm-project?rev=67110&view=rev
Log:
Driver: GCC 4.0 isn't happy with VISIBILITY_HIDDEN on a namespace.

Modified:
    cfe/trunk/lib/Driver/ToolChains.h
    cfe/trunk/lib/Driver/Tools.h

Modified: cfe/trunk/lib/Driver/ToolChains.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.h?rev=67110&r1=67109&r2=67110&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.h (original)
+++ cfe/trunk/lib/Driver/ToolChains.h Tue Mar 17 17:18:43 2009
@@ -20,12 +20,12 @@
 
 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:

Modified: cfe/trunk/lib/Driver/Tools.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.h?rev=67110&r1=67109&r2=67110&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.h (original)
+++ cfe/trunk/lib/Driver/Tools.h Tue Mar 17 17:18:43 2009
@@ -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 @@
     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 @@
     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 @@
     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 @@
     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 @@
     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) {}
 





More information about the cfe-commits mailing list