From 6ec950549b013843a5348cc4fa5684ef10a86e7e Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 18 May 2014 21:55:38 +0000 Subject: 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 --- lib/Object/Archive.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'lib/Object/Archive.cpp') 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 &Result return error_code::success(); } -error_code Archive::Child::getMemoryBuffer(OwningPtr &Result, - bool FullPath) const { - std::unique_ptr MB; - error_code ec = getMemoryBuffer(MB, FullPath); - Result = std::move(MB); - return ec; -} - error_code Archive::Child::getAsBinary(std::unique_ptr &Result, LLVMContext *Context) const { std::unique_ptr ret; @@ -204,14 +195,6 @@ error_code Archive::Child::getAsBinary(std::unique_ptr &Result, return object_error::success; } -error_code Archive::Child::getAsBinary(OwningPtr &Result, - LLVMContext *Context) const { - std::unique_ptr B; - error_code ec = getAsBinary(B, Context); - Result = std::move(B); - return ec; -} - ErrorOr Archive::create(MemoryBuffer *Source) { error_code EC; std::unique_ptr Ret(new Archive(Source, EC)); -- cgit v1.2.3