summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/tools/opt-viewer/opt-diff.py4
-rwxr-xr-xllvm/tools/opt-viewer/opt-stats.py2
-rwxr-xr-xllvm/tools/opt-viewer/opt-viewer.py2
-rw-r--r--llvm/tools/opt-viewer/optrecord.py2
4 files changed, 5 insertions, 5 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)
diff --git a/llvm/tools/opt-viewer/opt-stats.py b/llvm/tools/opt-viewer/opt-stats.py
index 8fa88cc510a..5c415df1bb6 100755
--- a/llvm/tools/opt-viewer/opt-stats.py
+++ b/llvm/tools/opt-viewer/opt-stats.py
@@ -43,7 +43,7 @@ if __name__ == '__main__':
print_progress = not args.no_progress_indicator
- files = optrecord.find_opt_files(args.yaml_dirs_or_files)
+ files = optrecord.find_opt_files(*args.yaml_dirs_or_files)
if not files:
parser.error("No *.opt.yaml files found")
sys.exit(1)
diff --git a/llvm/tools/opt-viewer/opt-viewer.py b/llvm/tools/opt-viewer/opt-viewer.py
index ceb9e22586c..08fe2d585e9 100755
--- a/llvm/tools/opt-viewer/opt-viewer.py
+++ b/llvm/tools/opt-viewer/opt-viewer.py
@@ -258,7 +258,7 @@ if __name__ == '__main__':
print_progress = not args.no_progress_indicator
- files = optrecord.find_opt_files(args.yaml_dirs_or_files)
+ files = optrecord.find_opt_files(*args.yaml_dirs_or_files)
if not files:
parser.error("No *.opt.yaml files found")
sys.exit(1)
diff --git a/llvm/tools/opt-viewer/optrecord.py b/llvm/tools/opt-viewer/optrecord.py
index a16763821ed..95b908965ee 100644
--- a/llvm/tools/opt-viewer/optrecord.py
+++ b/llvm/tools/opt-viewer/optrecord.py
@@ -282,7 +282,7 @@ def gather_results(filenames, num_jobs, should_print_progress):
return all_remarks, file_remarks, max_hotness != 0
-def find_opt_files(dirs_or_files):
+def find_opt_files(*dirs_or_files):
all = []
for dir_or_file in dirs_or_files:
if os.path.isfile(dir_or_file):
OpenPOWER on IntegriCloud