diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-10-20 11:33:49 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2022-10-27 10:06:01 +0200 |
commit | 0b779494a8523a0159afb399ba07f0086552b50d (patch) | |
tree | 002716e35b07a398512dce53a77becf9e0ace47e /llvm/utils/UpdateTestChecks/common.py | |
parent | e1b3d7ab44e19d5a67f9d1a05ea503d23b4c0dd5 (diff) | |
download | llvm-0b779494a8523a0159afb399ba07f0086552b50d.zip llvm-0b779494a8523a0159afb399ba07f0086552b50d.tar.gz llvm-0b779494a8523a0159afb399ba07f0086552b50d.tar.bz2 |
update_test_checks.py: allow use with custom tools
We have a downstream project with a command-line utility that operates
pretty much exactly like `opt`. So it would make sense for us to
maintain tests with update_test_checks.py with our custom tool
substituted for `opt`, as this change allows.
Differential Revision: https://reviews.llvm.org/D136329
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r-- | llvm/utils/UpdateTestChecks/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py index 8e02488..127a740 100644 --- a/llvm/utils/UpdateTestChecks/common.py +++ b/llvm/utils/UpdateTestChecks/common.py @@ -1154,8 +1154,8 @@ def get_autogennote_suffix(parser, args): if not hasattr(args, action.dest): continue # Ignore options such as --help that aren't included in args # Ignore parameters such as paths to the binary or the list of tests - if action.dest in ('tests', 'update_only', 'opt_binary', 'llc_binary', - 'clang', 'opt', 'llvm_bin', 'verbose'): + if action.dest in ('tests', 'update_only', 'tool_binary', 'opt_binary', + 'llc_binary', 'clang', 'opt', 'llvm_bin', 'verbose'): continue value = getattr(args, action.dest) if action.const is not None: # action stores a constant (usually True/False) |