From cb651c05d6097a7a4747bdf6ad098a73bc856ea5 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Mon, 26 Feb 2018 21:15:49 +0000 Subject: [PATCH] opt-viewer: also find thinlto opt.yaml files llvm-svn: 326124 --- llvm/tools/opt-viewer/optrecord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/opt-viewer/optrecord.py b/llvm/tools/opt-viewer/optrecord.py index f79e051..8cf22ee 100644 --- a/llvm/tools/opt-viewer/optrecord.py +++ b/llvm/tools/opt-viewer/optrecord.py @@ -328,6 +328,6 @@ def find_opt_files(*dirs_or_files): subdirs[:] = [d for d in subdirs if not os.path.ismount(os.path.join(dir, d))] for file in files: - if fnmatch.fnmatch(file, "*.opt.yaml"): + if fnmatch.fnmatch(file, "*.opt.yaml*"): all.append(os.path.join(dir, file)) return all -- 2.7.4