From ff044b1f695ae99fe9e2d61e8694d1170635a8e0 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Fri, 25 Mar 2016 23:11:52 +0000 Subject: [Object] Make createMachOObjectFile return Expected<...> rather than ErrorOr<...>. llvm-svn: 264473 --- llvm/lib/Object/ObjectFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/ObjectFile.cpp') diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp index 860cefa..ceb933f 100644 --- a/llvm/lib/Object/ObjectFile.cpp +++ b/llvm/lib/Object/ObjectFile.cpp @@ -96,7 +96,7 @@ ObjectFile::createObjectFile(MemoryBufferRef Object, sys::fs::file_magic Type) { case sys::fs::file_magic::macho_dynamically_linked_shared_lib_stub: case sys::fs::file_magic::macho_dsym_companion: case sys::fs::file_magic::macho_kext_bundle: - return createMachOObjectFile(Object); + return expectedToErrorOr(createMachOObjectFile(Object)); case sys::fs::file_magic::coff_object: case sys::fs::file_magic::coff_import_library: case sys::fs::file_magic::pecoff_executable: -- cgit v1.1