diff options
Diffstat (limited to 'include/llvm/Object/Archive.h')
-rw-r--r-- | include/llvm/Object/Archive.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/Object/Archive.h b/include/llvm/Object/Archive.h index 4fae76f..652b659 100644 --- a/include/llvm/Object/Archive.h +++ b/include/llvm/Object/Archive.h @@ -89,21 +89,17 @@ public: return StringRef(Data.data() + StartOfFile, getSize()); } - error_code getMemoryBuffer(OwningPtr<MemoryBuffer> &Result, - bool FullPath = false) const; error_code getMemoryBuffer(std::unique_ptr<MemoryBuffer> &Result, bool FullPath = false) const; - error_code getAsBinary(OwningPtr<Binary> &Result, - LLVMContext *Context = 0) const; error_code getAsBinary(std::unique_ptr<Binary> &Result, - LLVMContext *Context = 0) const; + LLVMContext *Context = nullptr) const; }; class child_iterator { Child child; public: - child_iterator() : child(Child(0, 0)) {} + child_iterator() : child(Child(nullptr, nullptr)) {} child_iterator(const Child &c) : child(c) {} const Child* operator->() const { return &child; |