aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2021-02-08 11:21:56 -0800
committerMircea Trofin <mtrofin@google.com>2021-02-08 11:21:56 -0800
commitf31ea86c808cbd841a348e35eb548b0046c8fdf7 (patch)
treea70c4dbce98fedcffde7950ac36d6a6faa6b2871 /llvm/utils/UpdateTestChecks/common.py
parent8d8cafa32e83e9557980b9906a71d0890b860c76 (diff)
downloadllvm-f31ea86c808cbd841a348e35eb548b0046c8fdf7.zip
llvm-f31ea86c808cbd841a348e35eb548b0046c8fdf7.tar.gz
llvm-f31ea86c808cbd841a348e35eb548b0046c8fdf7.tar.bz2
Revert "[Utils] Add a switch controlling prefix warnings in UpdateTestChecks"
This reverts commit 87f8a08ce36e5bc72f11129d2cf36b5848f86f63.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index a77dc63..4befaec 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -30,14 +30,9 @@ def parse_commandline_args(parser):
help='Activate CHECK line generation from this point forward')
parser.add_argument('--disable', action='store_false', dest='enabled',
help='Deactivate CHECK line generation from this point forward')
- parser.add_argument('--disable-verbose-prefix-warnings', action='store_false',
- default=True,
- dest='verbose_prefix_warnings',
- help='Disable warnings about unused prefixes.')
args = parser.parse_args()
- global _verbose, _verbose_prefix_warnings
+ global _verbose
_verbose = args.verbose
- _verbose_prefix_warnings = args.verbose_prefix_warnings
return args
@@ -277,9 +272,8 @@ class FunctionTestBuilder:
self._func_order.update({prefix: []})
def finish_and_get_func_dict(self):
- if _verbose_prefix_warnings:
- for prefix in self._get_failed_prefixes():
- warn('Prefix %s had conflicting output from different RUN lines for all functions' % (prefix,))
+ for prefix in self._get_failed_prefixes():
+ warn('Prefix %s had conflicting output from different RUN lines for all functions' % (prefix,))
return self._func_dict
def func_order(self):
@@ -335,9 +329,6 @@ class FunctionTestBuilder:
# so the body can't be common accross RUN lines. We use None to
# indicate that.
self._func_dict[prefix][func] = None
- if _verbose_prefix_warnings:
- warn('Function %s had conflicting output from different RUN lines for prefix %s' % (
- func, prefix))
continue
self._func_dict[prefix][func] = function_body(