Skip to content

Commit bcbb5dc

Browse files
committed
Export LLVM plugin entrypoint for windows shared library builds
Add Symbol visibility macro to llvmGetPassPluginInfo so plugins export it for windows shared library builds with explicit symbol visibility macros enabled. This avoids the need for existing plugins having to manually add visibility macros to there llvmGetPassPluginInfo function to work on windows. This is part of the work to enable LLVM_BUILD_LLVM_DYLIB and plugins on window.
1 parent 617278e commit bcbb5dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Passes/PassPlugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class PassPlugin {
107107
/// };
108108
/// }
109109
/// ```
110-
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK
110+
extern "C" ::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK LLVM_ABI_EXPORT
111111
llvmGetPassPluginInfo();
112112

113113
#endif /* LLVM_PASSES_PASSPLUGIN_H */

0 commit comments

Comments
 (0)