aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--llvm/tools/opt-viewer/optrecord.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/opt-viewer/optrecord.py b/llvm/tools/opt-viewer/optrecord.py
index b9244fd..07e2102 100644
--- a/llvm/tools/opt-viewer/optrecord.py
+++ b/llvm/tools/opt-viewer/optrecord.py
@@ -344,6 +344,8 @@ def find_opt_files(*dirs_or_files):
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*") or fnmatch.fnmatch(
+ file, "*.opt.ld.yaml*"
+ ):
all.append(os.path.join(dir, file))
return all