This is an archive of the discontinued LLVM Phabricator instance.

[dwarfdump] Add support for redirecting output to a file
ClosedPublic

Authored by JDevlieghere on Sep 21 2017, 2:41 AM.

Details

Summary

This patch adds the -o and --out-file options for compatibility with
Darwin's dwarfdump.

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Sep 21 2017, 2:41 AM
aprantl accepted this revision.Sep 21 2017, 9:00 AM

LGTM with inline comments addressed.
Thanks!

tools/llvm-dwarfdump/llvm-dwarfdump.cpp
134 ↗(On Diff #116155)

Not a nativer speaker, but IMO "to the specified file" sounds marginally better.

332 ↗(On Diff #116155)

I think this needs to come before error since error is noreturn?

This revision is now accepted and ready to land.Sep 21 2017, 9:00 AM
dblaikie added inline comments.Sep 21 2017, 5:41 PM
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
371 ↗(On Diff #116155)

Just capture all by reference for locally scoped lambdas

This revision was automatically updated to reflect the committed changes.
JDevlieghere marked an inline comment as done.