summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/MCJIT/MCJIT.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2013-06-28 21:40:16 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2013-06-28 21:40:16 +0000
commit40d8171e3e74f4786d89a8f1fb370653f81c7941 (patch)
tree55b7b1eb71aec541dbbb27eff4551e2e952fd061 /lib/ExecutionEngine/MCJIT/MCJIT.cpp
parent75f29256f3587b19740398adb9678b6ba376912f (diff)
downloadllvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.tar.gz
llvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.tar.bz2
llvm-40d8171e3e74f4786d89a8f1fb370653f81c7941.tar.xz
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/MCJIT/MCJIT.cpp')
-rw-r--r--lib/ExecutionEngine/MCJIT/MCJIT.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp
index e861938563..09dd924717 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()));
}