[PATCH] D75879: [lld]Enabling loading LLVM pass plugins
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 14:43:46 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf3018068517e: [lld] Enabling loading LLVM pass plugins (authored by efriedma).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75879/new/
https://reviews.llvm.org/D75879
Files:
lld/tools/lld/CMakeLists.txt
lld/tools/lld/lld.cpp
Index: lld/tools/lld/lld.cpp
===================================================================
--- lld/tools/lld/lld.cpp
+++ lld/tools/lld/lld.cpp
@@ -36,6 +36,7 @@
#include "llvm/Support/Host.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/Path.h"
+#include "llvm/Support/PluginLoader.h"
#include <cstdlib>
using namespace lld;
Index: lld/tools/lld/CMakeLists.txt
===================================================================
--- lld/tools/lld/CMakeLists.txt
+++ lld/tools/lld/CMakeLists.txt
@@ -4,7 +4,11 @@
add_lld_tool(lld
lld.cpp
+
+ ENABLE_PLUGINS
+ SUPPORT_PLUGINS
)
+export_executable_symbols_for_plugins(lld)
target_link_libraries(lld
PRIVATE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75879.252145.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200323/ff6010c9/attachment.bin>
More information about the llvm-commits
mailing list