[clang] b597992 - Revert "[perf-training] Check extension in findFilesWithExtension"
Roman Lebedev via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 10 14:23:32 PST 2023
Reminder to please always mention the reason for the revert/recommit
in the commit message.
On Wed, Jan 11, 2023 at 1:22 AM Amir Aupov via cfe-commits
<cfe-commits at lists.llvm.org> wrote:
>
>
> 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
>
>
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list