git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287182
91177308-0d34-0410-b5e6-
96231b3b80d8
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)