diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | 1 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/SectionMemoryManager.cpp | 2 |
4 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 438e656b60f..eb99312bb73 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -28,6 +28,8 @@ using namespace llvm; +void llvm::ObjectMemoryBuffer::anchor() {} + namespace { static struct RegisterJIT { @@ -665,3 +667,5 @@ LinkingSymbolResolver::findSymbol(const std::string &Name) { return nullptr; return ClientResolver->findSymbol(Name); } + +void LinkingSymbolResolver::anchor() {} diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h index 110cfa675cf..7ac792497f7 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -42,6 +42,7 @@ public: private: MCJIT &ParentEngine; std::shared_ptr<LegacyJITSymbolResolver> ClientResolver; + void anchor() override; }; // About Module states: added->loaded->finalized. diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp index 99e84b7496d..e774af05ebd 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp @@ -298,4 +298,6 @@ void *RTDyldMemoryManager::getPointerToNamedFunction(const std::string &Name, return (void*)Addr; } +void RTDyldMemoryManager::anchor() {} +void MCJITMemoryManager::anchor() {} } // namespace llvm diff --git a/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp b/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp index 2dc66a1502f..05ab4a074e3 100644 --- a/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp +++ b/llvm/lib/ExecutionEngine/SectionMemoryManager.cpp @@ -232,6 +232,8 @@ SectionMemoryManager::~SectionMemoryManager() { SectionMemoryManager::MemoryMapper::~MemoryMapper() {} +void SectionMemoryManager::anchor() {} + namespace { // Trivial implementation of SectionMemoryManager::MemoryMapper that just calls // into sys::Memory. |

