[llvm-dwarfdump] Simplify -o handling
authorFangrui Song <maskray@google.com>
Wed, 27 Mar 2019 08:19:36 +0000 (08:19 +0000)
committerFangrui Song <maskray@google.com>
Wed, 27 Mar 2019 08:19:36 +0000 (08:19 +0000)
commit95db95729c66f831647ac171248893e4e5cd3d11
tree07700108bc379aa06271762d117dbb8a8877aa62
parentfeadc2a1de82b9c1358b6f14072bcf9a9a89a188
[llvm-dwarfdump] Simplify -o handling

ToolOutputFile handles '-' so no need to specialize here.
Also, we neither reassign the variable nor pass it around, thus no need
to use std::unique_ptr<ToolOutputFile>.

exit(1) -> return 1;  to call the destructor of raw_fd_stream

llvm-svn: 357051
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp