File tree Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Expand file tree Collapse file tree 3 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ if(NOT CYGWIN AND LLVM_ENABLE_PIC)
1010 add_llvm_library(findconfig ${SHARED_LIB_SOURCES} LINK_LIBS
1111 LW)
1212
13- target_compile_definitions (findconfig PRIVATE IN_DLL)
14-
1513 set (BUILD_SHARED_LIBS ${bsl} )
1614
1715endif ()
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ if(NOT CYGWIN AND LLVM_ENABLE_PIC)
99
1010 add_llvm_library(missinginifile ${SHARED_LIB_SOURCES} LINK_LIBS LW)
1111
12- target_compile_definitions (missinginifile PRIVATE IN_DLL)
13-
1412 set (BUILD_SHARED_LIBS ${bsl} )
1513
1614endif ()
Original file line number Diff line number Diff line change 44#include " PluginVersion.h"
55#include < string>
66
7- #ifdef _WIN32
8- #define DLL_EXPORT __declspec (dllexport)
9- #else
10- #define DLL_EXPORT
11- #endif
12-
137using namespace eld ::plugin;
148
15- class DLL_EXPORT MissingINIFile : public OutputSectionIteratorPlugin {
9+ class DLL_A_EXPORT MissingINIFile : public OutputSectionIteratorPlugin {
1610
1711public:
1812 MissingINIFile () : OutputSectionIteratorPlugin(" MissingINIFile" ) {}
@@ -59,14 +53,14 @@ class DLL_EXPORT MissingINIFile : public OutputSectionIteratorPlugin {
5953MissingINIFile *ThisPlugin = nullptr ;
6054
6155extern " C" {
62- bool DLL_EXPORT RegisterAll () {
56+ bool DLL_A_EXPORT RegisterAll () {
6357 ThisPlugin = new MissingINIFile ();
6458 return true ;
6559}
6660
67- Plugin DLL_EXPORT *getPlugin (const char *T) { return ThisPlugin; }
61+ Plugin DLL_A_EXPORT *getPlugin (const char *T) { return ThisPlugin; }
6862
69- void DLL_EXPORT Cleanup () {
63+ void DLL_A_EXPORT Cleanup () {
7064 if (ThisPlugin)
7165 delete ThisPlugin;
7266}
You can’t perform that action at this time.
0 commit comments