[llvm-commits] [llvm] r112700 - /llvm/trunk/include/llvm/Support/Compiler.h

Duncan Sands baldrick at free.fr
Wed Sep 1 06:07:11 PDT 2010


Author: baldrick
Date: Wed Sep  1 08:07:11 2010
New Revision: 112700

URL: http://llvm.org/viewvc/llvm-project?rev=112700&view=rev
Log:
Define LLVM_GLOBAL_VISIBILITY to be __declspec(dllexport) on
windows systems.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=112700&r1=112699&r2=112700&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Sep  1 08:07:11 2010
@@ -24,7 +24,10 @@
 /// into a shared library, then the class will be accessible from outside the
 /// the library.  Can also be used to mark variables and functions, making them
 /// accessible from outside any shared library they are linked into.
-#if (__GNUC__ >= 4) && !defined(__MINGW32__) && !defined(__CYGWIN__)
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+#define LLVM_LIBRARY_VISIBILITY
+#define LLVM_GLOBAL_VISIBILITY __declspec(dllexport)
+#elif (__GNUC__ >= 4)
 #define LLVM_LIBRARY_VISIBILITY __attribute__ ((visibility("hidden")))
 #define LLVM_GLOBAL_VISIBILITY __attribute__ ((visibility("default")))
 #else





More information about the llvm-commits mailing list