cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
- Expected<std::unique_ptr<Module>> MOrErr = openInputFile(Context);
- if (!MOrErr) {
- handleAllErrors(MOrErr.takeError(), [&](ErrorInfoBase &EIB) {
- errs() << argv[0] << ": ";
- EIB.log(errs());
- errs() << '\n';
- });
- return 1;
- }
- std::unique_ptr<Module> M = std::move(*MOrErr);
+ std::unique_ptr<Module> M = openInputFile(Context);
// Just use stdout. We won't actually print anything on it.
if (DontPrint)