summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2017-06-23 20:06:34 +0000
committerBrian Gesiak <modocache@gmail.com>2017-06-23 20:06:34 +0000
commit7e66b6b8ea727ccd4dfcc899453262eb00098037 (patch)
tree0df872745498e087ba552e0611a54880de04ea8f /lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py
parent6b124f29e727da3f3d27112b7ded82b404a68b2f (diff)
downloadbcm5719-llvm-7e66b6b8ea727ccd4dfcc899453262eb00098037.tar.gz
bcm5719-llvm-7e66b6b8ea727ccd4dfcc899453262eb00098037.zip
[opt-viewer] Remove positional arg checks (NFC)
Summary: opt-stats.py and opt-viewer.py's argument parsers both take a positional argument 'yaml_files'. Positional arguments in Python's argparse module are required by default, so the subsequent checks for `len(args.yaml_files) == 0` are unnecessary -- if the length was zero, then the call to `parser.parse_args()` would have thrown an error already. Because there is no way for `len(args.yaml_files)` to be zero at these points, removing the code is NFC. Reviewers: anemet, davidxl Reviewed By: anemet Subscribers: llvm-commits, fhahn Differential Revision: https://reviews.llvm.org/D34567 llvm-svn: 306147
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/value/TestValueAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud