mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
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
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user