From 6724658f8502822b0d526d13f38b84b3685dcdcd Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 12 Apr 2018 17:28:30 +0000 Subject: [PATCH] [MCJIT] Remove the anchor from mcjit. This is a layering violation. LTO shouldn't depend on MCJIT. The right fix for this is moving the class somewhere else. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@329929 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/ObjectMemoryBuffer.h | 1 - lib/ExecutionEngine/MCJIT/MCJIT.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h b/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h index 03567530fb3..0f00ad006a7 100644 --- a/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h +++ b/include/llvm/ExecutionEngine/ObjectMemoryBuffer.h @@ -56,7 +56,6 @@ public: private: SmallVector SV; std::string BufferName; - void anchor() override; }; } // namespace llvm diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index eb99312bb73..7b3acb830e0 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -28,8 +28,6 @@ using namespace llvm; -void llvm::ObjectMemoryBuffer::anchor() {} - namespace { static struct RegisterJIT { -- 2.11.0