diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-01 18:09:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-08-01 18:09:32 +0000 |
commit | ce47a05c7c5251fa8d0e4e6d9610b774d53a5e7c (patch) | |
tree | fd31f1aaecfcc9173af945fdcb1f0dcb6d019982 /llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | |
parent | 9e5b6a08d425401b97d5ed3182d4c2f7111ca6b3 (diff) | |
download | bcm5719-llvm-ce47a05c7c5251fa8d0e4e6d9610b774d53a5e7c.tar.gz bcm5719-llvm-ce47a05c7c5251fa8d0e4e6d9610b774d53a5e7c.zip |
Replace comment about ownership with std::unique_ptr.
llvm-svn: 214533
Diffstat (limited to 'llvm/lib/ExecutionEngine/MCJIT/MCJIT.h')
-rw-r--r-- | llvm/lib/ExecutionEngine/MCJIT/MCJIT.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h index f28aab31197..83e3321db92 100644 --- a/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h +++ b/llvm/lib/ExecutionEngine/MCJIT/MCJIT.h @@ -215,7 +215,7 @@ class MCJIT : public ExecutionEngine { OwningModuleContainer OwnedModules; - SmallVector<object::Archive*, 2> Archives; + SmallVector<std::unique_ptr<object::Archive>, 2> Archives; typedef SmallVector<ObjectImage *, 2> LoadedObjectList; LoadedObjectList LoadedObjects; @@ -239,7 +239,7 @@ public: /// @{ void addModule(Module *M) override; void addObjectFile(std::unique_ptr<object::ObjectFile> O) override; - void addArchive(object::Archive *O) override; + void addArchive(std::unique_ptr<object::Archive> O) override; bool removeModule(Module *M) override; /// FindFunctionNamed - Search all of the active modules to find the one that |