[PATCH] D45244: Add missing vtable anchors

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 17:02:20 PDT 2018


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.

On Mon, Apr 9, 2018 at 4:59 PM Weiming Zhao via Phabricator <
reviews at reviews.llvm.org> wrote:

> weimingz added a comment.
>
> If I choose to define ObjectMemoryBuffer::anchor() in MCJIT.cpp (the
> module that uses ObjectMemoryBuffer), then I got error like:
> ../../lib/libLLVMLTO.a(ThinLTOCodeGenerator.cpp.o): In function
> `ObjectMemoryBuffer':
> llvm/ExecutionEngine/ObjectMemoryBuffer.h:41: undefined reference to
> `vtable for llvm::ObjectMemoryBuffer'
>
>
> Repository:
>   rL LLVM
>
> https://reviews.llvm.org/D45244
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180410/2610553b/attachment.html>


More information about the llvm-commits mailing list