[compiler-rt] r293422 - [windows] Properly use dllimport / dllexport.

Marcos Pividori via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 28 22:11:32 PST 2017


Author: mpividori
Date: Sun Jan 29 00:11:32 2017
New Revision: 293422

URL: http://llvm.org/viewvc/llvm-project?rev=293422&view=rev
Log:
[windows] Properly use dllimport / dllexport.

Update the headers, so we can change the dllexports to dllimport when
defining SANITIZER_IMPORT_INTERFACE.

Differential Revision: https://reviews.llvm.org/D29052

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h?rev=293422&r1=293421&r2=293422&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_internal_defs.h Sun Jan 29 00:11:32 2017
@@ -21,7 +21,11 @@
 
 // Only use SANITIZER_*ATTRIBUTE* before the function return type!
 #if SANITIZER_WINDOWS
+#if SANITIZER_IMPORT_INTERFACE
+# define SANITIZER_INTERFACE_ATTRIBUTE __declspec(dllimport)
+#else
 # define SANITIZER_INTERFACE_ATTRIBUTE __declspec(dllexport)
+#endif
 # define SANITIZER_WEAK_ATTRIBUTE
 #elif SANITIZER_GO
 # define SANITIZER_INTERFACE_ATTRIBUTE




More information about the llvm-commits mailing list