diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-06-28 21:40:16 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2013-06-28 21:40:16 +0000 |
commit | 40d8171e3e74f4786d89a8f1fb370653f81c7941 (patch) | |
tree | 55b7b1eb71aec541dbbb27eff4551e2e952fd061 /lib/ExecutionEngine | |
parent | 75f29256f3587b19740398adb9678b6ba376912f (diff) | |
download | external_llvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.zip external_llvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.tar.gz external_llvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.tar.bz2 |
Revising the MCJIT ObjectCache interface to allow subclasses to avoid retaining references to returned objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/MCJIT/MCJIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index e861938..09dd924 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -129,7 +129,7 @@ void MCJIT::loadObject(Module *M) { OwningPtr<ObjectBuffer> ObjectToLoad; // Try to load the pre-compiled object from cache if possible if (0 != ObjCache) { - OwningPtr<MemoryBuffer> PreCompiledObject(ObjCache->getObjectCopy(M)); + OwningPtr<MemoryBuffer> PreCompiledObject(ObjCache->getObject(M)); if (0 != PreCompiledObject.get()) ObjectToLoad.reset(new ObjectBuffer(PreCompiledObject.take())); } |