mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-26 21:56:11 +00:00
llvm-dis: Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b8248feef5
commit
d17731360a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user