[clang] b597992 - Revert "[perf-training] Check extension in findFilesWithExtension"
Amir Aupov via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 10 14:22:51 PST 2023
Author: Amir Aupov
Date: 2023-01-10T14:22:36-08:00
New Revision: b59799241b3902a460c3b1156477af369934a13e
URL: https://github.com/llvm/llvm-project/commit/b59799241b3902a460c3b1156477af369934a13e
DIFF: https://github.com/llvm/llvm-project/commit/b59799241b3902a460c3b1156477af369934a13e.diff
LOG: Revert "[perf-training] Check extension in findFilesWithExtension"
This reverts commit 1fbbf92e4fda3c7a3be1c02e1f7240135557846d.
Added:
Modified:
clang/utils/perf-training/perf-helper.py
Removed:
################################################################################
diff --git a/clang/utils/perf-training/perf-helper.py b/clang/utils/perf-training/perf-helper.py
index d68ab3c72806e..c6a815e654736 100644
--- a/clang/utils/perf-training/perf-helper.py
+++ b/clang/utils/perf-training/perf-helper.py
@@ -23,7 +23,7 @@ def findFilesWithExtension(path, extension):
filenames = []
for root, dirs, files in os.walk(path):
for filename in files:
- if os.path.splitext(filename)[1] == extension:
+ if filename.endswith(extension):
filenames.append(os.path.join(root, filename))
return filenames
More information about the cfe-commits
mailing list