forked from OSchip/llvm-project
[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 llvm-svn: 293422
This commit is contained in:
parent
135da1faf5
commit
35e60eeb6e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue