[llvm] r287182 - llvm-dis: Remove dead code.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 16 16:42:08 PST 2016
Author: pcc
Date: Wed Nov 16 18:42:08 2016
New Revision: 287182
URL: http://llvm.org/viewvc/llvm-project?rev=287182&view=rev
Log:
llvm-dis: Remove dead code.
Modified:
llvm/trunk/tools/llvm-dis/llvm-dis.cpp
Modified: llvm/trunk/tools/llvm-dis/llvm-dis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dis/llvm-dis.cpp?rev=287182&r1=287181&r2=287182&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dis/llvm-dis.cpp (original)
+++ llvm/trunk/tools/llvm-dis/llvm-dis.cpp Wed Nov 16 18:42:08 2016
@@ -166,16 +166,7 @@ int main(int argc, char **argv) {
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)
More information about the llvm-commits
mailing list