summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ObjectFile.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-03-25 23:11:52 +0000
committerLang Hames <lhames@gmail.com>2016-03-25 23:11:52 +0000
commitff044b1f695ae99fe9e2d61e8694d1170635a8e0 (patch)
treecc8f8f3e7fb55d26881d5b24cfc2c763fc4dc641 /llvm/lib/Object/ObjectFile.cpp
parentb5681138e41ea0c2712c6bf1b770f66391f45216 (diff)
downloadbcm5719-llvm-ff044b1f695ae99fe9e2d61e8694d1170635a8e0.tar.gz
bcm5719-llvm-ff044b1f695ae99fe9e2d61e8694d1170635a8e0.zip
[Object] Make createMachOObjectFile return Expected<...> rather than
ErrorOr<...>. llvm-svn: 264473
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
-rw-r--r--llvm/lib/Object/ObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/ObjectFile.cpp b/llvm/lib/Object/ObjectFile.cpp
index 860cefa113c..ceb933f4341 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:
OpenPOWER on IntegriCloud