This is an archive of the discontinued LLVM Phabricator instance.

[opt-viewer] opt-viewer.py takes -o argument
ClosedPublic

Authored by modocache on Jun 27 2017, 2:00 PM.

Details

Summary

Change how the output directory is specified when invoking
opt-viewer.py, from opt-viewer.py yaml_file_one yaml_file_two output_dir to
opt-viewer.py -o output_dir yaml_file_one yaml_file_two.

This makes it easier to pipe the results of another command into
opt-viewer.py. For example:

find . -name "*.yaml" -print | xargs /path/to/opt-viewer.py -o html

Event Timeline

modocache created this revision.Jun 27 2017, 2:00 PM
anemet accepted this revision.Jun 29 2017, 6:33 AM

Great! LGTM.

This revision is now accepted and ready to land.Jun 29 2017, 6:33 AM
modocache closed this revision.Jun 29 2017, 9:20 AM

Great, thanks for the review! :)