From c60a321c6b26c99aadc27b81c11806fa88f7fcfa Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Wed, 29 Jun 2016 20:35:44 +0000 Subject: Change Archive::create() from ErrorOr<...> to Expected<...> and update its clients. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit will break the next lld builds. I’ll be committing the matching change for lld next. llvm-svn: 274160 --- llvm/lib/Object/Binary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/Binary.cpp') diff --git a/llvm/lib/Object/Binary.cpp b/llvm/lib/Object/Binary.cpp index 8d03a2a976b..ec051fec375 100644 --- a/llvm/lib/Object/Binary.cpp +++ b/llvm/lib/Object/Binary.cpp @@ -42,7 +42,7 @@ Expected> object::createBinary(MemoryBufferRef Buffer, switch (Type) { case sys::fs::file_magic::archive: - return errorOrToExpected(Archive::create(Buffer)); + return Archive::create(Buffer); case sys::fs::file_magic::elf: case sys::fs::file_magic::elf_relocatable: case sys::fs::file_magic::elf_executable: -- cgit v1.2.3