<p dir="ltr">There currently isn't any way - the layering isn't really setup that way for one thing (lld depends on llvm, not the other way around). But it might be nice to sink some.of lld's libraries into llvm(they'd need a bunch of refactoring to become reusable libraries) for use in the jit or other places.</p>
<br><div class="gmail_quote"><div dir="ltr">On Sat., 2 Sep. 2017, 7:10 am Philipp Schaad via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone<div><br></div><div>I was wondering if there was a way to call LLD from code within LLVM. More concrete: I am working in Polly, and I am trying to link an ELF relocatable object file into an ELF shared object file. Is there a way to run an LLD pass from within the code?</div><div><br></div><div>Thank you in advance for any pointers!</div><div>Best,</div><div>Philipp Schaad</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>