OSDN Git Service

[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)
commitadd25ee3712645a4584b14d031e4cb73531d634d
treee73693dea08adf411cdfac3ef067d7e58f9ec9b7
parent6ba87d01dcddd908b1faf4b4d636a999a5341d30
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357051 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-dwarfdump/llvm-dwarfdump.cpp