<div dir="ltr">You'd have to add the ExecutionEngine library as a dependency from the LTO library - by modifying lib/LTO/LLVMBuild.txt - then it should link, I would think.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 9, 2018 at 4:59 PM Weiming Zhao via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">weimingz added a comment.<br>
<br>
If I choose to define ObjectMemoryBuffer::anchor() in MCJIT.cpp (the module that uses ObjectMemoryBuffer), then I got error like:<br>
../../lib/libLLVMLTO.a(ThinLTOCodeGenerator.cpp.o): In function `ObjectMemoryBuffer':<br>
llvm/ExecutionEngine/ObjectMemoryBuffer.h:41: undefined reference to `vtable for llvm::ObjectMemoryBuffer'<br>
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D45244" rel="noreferrer" target="_blank">https://reviews.llvm.org/D45244</a><br>
<br>
<br>
<br>
</blockquote></div>