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 | b595f53069f9c9b5693df2be6aaa7cd1c7a94048 (patch) | |
tree | dac6108e59d91beeb836da33262767c58be87c85 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | |
parent | a5fc6219ee7f171b64282af0545f20639c878da1 (diff) | |
download | bcm5719-llvm-b595f53069f9c9b5693df2be6aaa7cd1c7a94048.tar.gz bcm5719-llvm-b595f53069f9c9b5693df2be6aaa7cd1c7a94048.zip |
Revising the MCJIT ObjectCache interface to allow subclasses to avoid retaining references to returned objects
llvm-svn: 185221
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp index e8619385635..09dd9247170 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/llvm/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())); } |