diff options
author | Lang Hames <lhames@gmail.com> | 2016-09-04 07:24:11 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2016-09-04 07:24:11 +0000 |
commit | 3301c7eebd4ede04916c95caba153908c66fe3f9 (patch) | |
tree | 114b81c434bc78be35dadbf7b88614c9ecc04e57 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 7673ba7ac214e98aa97e54072392859a236bcd70 (diff) | |
download | bcm5719-llvm-3301c7eebd4ede04916c95caba153908c66fe3f9.tar.gz bcm5719-llvm-3301c7eebd4ede04916c95caba153908c66fe3f9.zip |
[ExecutionEngine] Move ObjectCache::anchor from MCJIT to ExecutionEngine.
ObjectCache is an ExecutionEngine utility, so its anchor belongs there. The
practical impact of this change is that ORC users no longer need to link MCJIT
to use ObjectCaches.
llvm-svn: 280616
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 2985f9bae8c..0fcb9abdaa0 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -18,6 +18,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/ExecutionEngine/GenericValue.h" #include "llvm/ExecutionEngine/JITEventListener.h" +#include "llvm/ExecutionEngine/ObjectCache.h" #include "llvm/ExecutionEngine/RTDyldMemoryManager.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DataLayout.h" @@ -62,6 +63,8 @@ ExecutionEngine *(*ExecutionEngine::InterpCtor)(std::unique_ptr<Module> M, void JITEventListener::anchor() {} +void ObjectCache::anchor() {} + void ExecutionEngine::Init(std::unique_ptr<Module> M) { CompilingLazily = false; GVCompilationDisabled = false; |