OSDN Git Service

[opt-viewer] opt-viewer.py takes -o argument
authorBrian Gesiak <modocache@gmail.com>
Thu, 29 Jun 2017 16:20:31 +0000 (16:20 +0000)
committerBrian Gesiak <modocache@gmail.com>
Thu, 29 Jun 2017 16:20:31 +0000 (16:20 +0000)
commit11eef886481cb0ee278265e8addafb119e80010f
tree004c9cf9f6d726e95a87aab9f019fbca3fa87381
parentaeca92c57536f7affea689e4492ab2c8dc084512
[opt-viewer] opt-viewer.py takes -o argument

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
```

Reviewers: anemet, davidxl

Reviewed By: anemet

Subscribers: fhahn, llvm-commits

Differential Revision: https://reviews.llvm.org/D34711

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306694 91177308-0d34-0410-b5e6-96231b3b80d8
utils/opt-viewer/opt-viewer.py