llvm.org GIT mirror llvm / d177313
llvm-dis: Remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287182 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Collingbourne 2 years ago
1 changed file(s) with 1 addition(s) and 10 deletion(s). Raw diff Collapse all Expand all
165165
166166 cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
167167
168 Expected> MOrErr = openInputFile(Context);
169 if (!MOrErr) {
170 handleAllErrors(MOrErr.takeError(), [&](ErrorInfoBase &EIB) {
171 errs() << argv[0] << ": ";
172 EIB.log(errs());
173 errs() << '\n';
174 });
175 return 1;
176 }
177 std::unique_ptr M = std::move(*MOrErr);
168 std::unique_ptr M = openInputFile(Context);
178169
179170 // Just use stdout. We won't actually print anything on it.
180171 if (DontPrint)