summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-09-03 21:34:34 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-09-03 21:34:34 +0000
commitfba8b20d98afebd0b11b675b2a10c891b12c2b5b (patch)
tree8b7a5c0059b0e4b08f8899cf3e8d5363b53ddbd6 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
parented3d48f16128304821e884b4e4ff0ec6f95323bf (diff)
downloadbcm5719-llvm-fba8b20d98afebd0b11b675b2a10c891b12c2b5b.tar.gz
bcm5719-llvm-fba8b20d98afebd0b11b675b2a10c891b12c2b5b.zip
unique_ptrify RuntimeDyldImpl::loadObject
I'm not sure this is a particularly helpful API (to pass ownership and then return it unconditionally) rather than just pass the underlying object by non-const reference, but this was the original API so I'll just make it more safe/stable and anyone else is free to adjust that at their whim, of course. llvm-svn: 217081
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h')
-rw-r--r--llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
index d2c58eb0a64..53ea370196d 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
@@ -373,7 +373,8 @@ public:
this->Checker = Checker;
}
- ObjectImage *loadObject(ObjectImage *InputObject);
+ std::unique_ptr<ObjectImage>
+ loadObject(std::unique_ptr<ObjectImage> InputObject);
uint8_t* getSymbolAddress(StringRef Name) {
// FIXME: Just look up as a function for now. Overly simple of course.
OpenPOWER on IntegriCloud