[PATCH] D75879: [lld]Enabling loading LLVM pass plugins
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 12:33:23 PDT 2020
efriedma updated this revision to Diff 252119.
efriedma retitled this revision from "[lld][WIP]Enabling loading LLVM pass plugins" to "[lld]Enabling loading LLVM pass plugins".
efriedma edited the summary of this revision.
efriedma added a reviewer: MaskRay.
efriedma added a comment.
Rebased, address review comments.
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.252119.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200323/253674c0/attachment.bin>
More information about the llvm-commits
mailing list