[PATCH] D65295: [opt] Ensure the IR-Linker is available to plugins.
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 11:58:51 PDT 2019
mehdi_amini added a comment.
In D65295#1602763 <https://reviews.llvm.org/D65295#1602763>, @beanz wrote:
> The CMake build system option `PLUGIN_TOOL` on `add_llvm_loadable_module` is for this specific purpose, it instructs the link step for the plugin dylib to resolve symbols against the tool.
>
> Polly likely needs to generate different libraries for being a clang plugin vs being an opt plugin, but that is expected and the correct solution to this problem.
I'm not sure I understood: does it mean that the plugin dylib would embed the symbols it needs unless it finds them inside the tool (`opt`)?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65295/new/
https://reviews.llvm.org/D65295
More information about the llvm-commits
mailing list