diff options
author | Adam Nemet <anemet@apple.com> | 2017-09-29 05:20:53 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2017-09-29 05:20:53 +0000 |
commit | 9d57dc6fb1d1738343922a57f2a59163d0aa7470 (patch) | |
tree | 965cd944d782d36e09e34bb208d29a6123df01ed /llvm/tools/opt-viewer/opt-diff.py | |
parent | 13cda49c9676c2592a541cf38c28035adeba6d07 (diff) | |
download | bcm5719-llvm-9d57dc6fb1d1738343922a57f2a59163d0aa7470.tar.gz bcm5719-llvm-9d57dc6fb1d1738343922a57f2a59163d0aa7470.zip |
Make find_opt_files vararg
This is slightly less verbose for the common case of a single build directory
and more intuitive when using this API directly from the interpreter.
llvm-svn: 314491
Diffstat (limited to 'llvm/tools/opt-viewer/opt-diff.py')
-rwxr-xr-x | llvm/tools/opt-viewer/opt-diff.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/opt-viewer/opt-diff.py b/llvm/tools/opt-viewer/opt-diff.py index 32d6e5afd4c..6b20d82c7ee 100755 --- a/llvm/tools/opt-viewer/opt-diff.py +++ b/llvm/tools/opt-viewer/opt-diff.py @@ -46,8 +46,8 @@ if __name__ == '__main__': parser.add_argument('--output', '-o', default='diff.opt.yaml') args = parser.parse_args() - files1 = optrecord.find_opt_files([args.yaml_dir_or_file_1]) - files2 = optrecord.find_opt_files([args.yaml_dir_or_file_2]) + files1 = optrecord.find_opt_files(args.yaml_dir_or_file_1) + files2 = optrecord.find_opt_files(args.yaml_dir_or_file_2) print_progress = not args.no_progress_indicator all_remarks1, _, _ = optrecord.gather_results(files1, args.jobs, print_progress) |