mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +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:
@ -12,7 +12,6 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/FileOutputBuffer.h"
|
||||
#include "llvm/ADT/OwningPtr.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
#include "llvm/Support/system_error.h"
|
||||
@ -85,16 +84,6 @@ error_code FileOutputBuffer::create(StringRef FilePath,
|
||||
return error_code::success();
|
||||
}
|
||||
|
||||
error_code FileOutputBuffer::create(StringRef FilePath,
|
||||
size_t Size,
|
||||
OwningPtr<FileOutputBuffer> &Result,
|
||||
unsigned Flags) {
|
||||
std::unique_ptr<FileOutputBuffer> FOB;
|
||||
error_code ec = create(FilePath, Size, FOB, Flags);
|
||||
Result = std::move(FOB);
|
||||
return ec;
|
||||
}
|
||||
|
||||
error_code FileOutputBuffer::commit(int64_t NewSmallerSize) {
|
||||
// Unmap buffer, letting OS flush dirty pages to file on disk.
|
||||
Region.reset(nullptr);
|
||||
|
Reference in New Issue
Block a user