Skip to content

Commit 66d3650

Browse files
committed
Switch to just using dllexport for llvmGetPassPluginInfo declaration
1 parent bcbb5dc commit 66d3650

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

llvm/include/llvm/Passes/PassPlugin.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ class PassPlugin {
107107
/// };
108108
/// }
109109
/// ```
110-
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK LLVM_ABI_EXPORT
110+
111+
#if defined(_WIN32) && defined(LLVM_BUILD_LLVM_DYLIB)
112+
extern "C" ::llvm::PassPluginLibraryInfo __declspec(dllexport)
113+
llvmGetPassPluginInfo();
114+
#else
115+
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
111116
llvmGetPassPluginInfo();
117+
#endif
112118

113119
#endif /* LLVM_PASSES_PASSPLUGIN_H */

0 commit comments

Comments
 (0)