diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-05-18 21:55:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-05-18 21:55:38 +0000 |
commit | 6ec950549b013843a5348cc4fa5684ef10a86e7e (patch) | |
tree | 025ac3e1f525fd70a948a3d7daf20e3c4241f324 /lib/Object | |
parent | 677564fe722595d204f2b530db8706ac1037b2b4 (diff) | |
download | llvm-6ec950549b013843a5348cc4fa5684ef10a86e7e.tar.gz llvm-6ec950549b013843a5348cc4fa5684ef10a86e7e.tar.bz2 llvm-6ec950549b013843a5348cc4fa5684ef10a86e7e.tar.xz |
Remove last uses of OwningPtr from llvm. As far as I can tell these method versions are not used by lldb, lld, or clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r-- | lib/Object/Archive.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/Object/Archive.cpp b/lib/Object/Archive.cpp index d53704fa79..304ca475e1 100644 --- a/lib/Object/Archive.cpp +++ b/lib/Object/Archive.cpp @@ -13,7 +13,6 @@ #include "llvm/Object/Archive.h" #include "llvm/ADT/APInt.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/ADT/Twine.h" #include "llvm/Support/Endian.h" @@ -183,14 +182,6 @@ error_code Archive::Child::getMemoryBuffer(std::unique_ptr<MemoryBuffer> &Result return error_code::success(); } -error_code Archive::Child::getMemoryBuffer(OwningPtr<MemoryBuffer> &Result, - bool FullPath) const { - std::unique_ptr<MemoryBuffer> MB; - error_code ec = getMemoryBuffer(MB, FullPath); - Result = std::move(MB); - return ec; -} - error_code Archive::Child::getAsBinary(std::unique_ptr<Binary> &Result, LLVMContext *Context) const { std::unique_ptr<Binary> ret; @@ -204,14 +195,6 @@ error_code Archive::Child::getAsBinary(std::unique_ptr<Binary> &Result, return object_error::success; } -error_code Archive::Child::getAsBinary(OwningPtr<Binary> &Result, - LLVMContext *Context) const { - std::unique_ptr<Binary> B; - error_code ec = getAsBinary(B, Context); - Result = std::move(B); - return ec; -} - ErrorOr<Archive*> Archive::create(MemoryBuffer *Source) { error_code EC; std::unique_ptr<Archive> Ret(new Archive(Source, EC)); |