[llvm-readobj] Remove dead code. Add an assertion instead.
[oota-llvm.git] / tools / llvm-objdump / MachODump.cpp
index 87b2b439d55cc6136530e8fa3e714e1e386f297a..258c0b520a3d4f6ecfcb9f864d9bf9668679fcf7 100644 (file)
@@ -1651,8 +1651,9 @@ void llvm::ParseInputMachO(StringRef Filename) {
     } else
       errs() << "llvm-objdump: '" << Filename << "': "
              << "Object is not a Mach-O file type.\n";
-  } else
-    report_error(Filename, object_error::invalid_file_type);
+    return;
+  }
+  llvm_unreachable("Input object can't be invalid at this point");
 }
 
 typedef std::pair<uint64_t, const char *> BindInfoEntry;