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 | b816593cf0c42bc1b47a5a838b48cc1e0e3d9d63 (patch) | |
tree | cd070e2e1df60ed3bdc9a372e96cb6de60d7e105 /llvm/lib/Support/FileOutputBuffer.cpp | |
parent | b85bc4e2dff2df906e7e72b47f85137f50364cb3 (diff) | |
download | bcm5719-llvm-b816593cf0c42bc1b47a5a838b48cc1e0e3d9d63.tar.gz bcm5719-llvm-b816593cf0c42bc1b47a5a838b48cc1e0e3d9d63.zip |
Remove last uses of OwningPtr from llvm. As far as I can tell these method versions are not used by lldb, lld, or clang.
llvm-svn: 209103
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
-rw-r--r-- | llvm/lib/Support/FileOutputBuffer.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Support/FileOutputBuffer.cpp b/llvm/lib/Support/FileOutputBuffer.cpp index 7e922df1358..49311c29d8b 100644 --- a/llvm/lib/Support/FileOutputBuffer.cpp +++ b/llvm/lib/Support/FileOutputBuffer.cpp @@ -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); |