[Object] Make createMachOObjectFile return Expected<...> rather than

ErrorOr<...>.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Lang Hames
2016-03-25 23:11:52 +00:00
parent 779f485d35
commit be17ef7903
4 changed files with 10 additions and 13 deletions
+1 -1
View File
@@ -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: