summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_cc_test_checks.py
diff options
context:
space:
mode:
authorDavid Bolvansky <david.bolvansky@gmail.com>2019-07-29 17:41:00 +0000
committerDavid Bolvansky <david.bolvansky@gmail.com>2019-07-29 17:41:00 +0000
commit45be5e477e9216363191a8ac9123bea4585cf14f (patch)
treeee9f1fbdc3bb70e7069ac62e253459819dcf98b0 /llvm/utils/update_cc_test_checks.py
parent72d00802d848e10ef1fc68564729d02d7a29546d (diff)
downloadbcm5719-llvm-45be5e477e9216363191a8ac9123bea4585cf14f.tar.gz
bcm5719-llvm-45be5e477e9216363191a8ac9123bea4585cf14f.zip
[UpdateTestChecks] Emit warning when invalid value for -check-prefix(es) option
Summary: The script is silent for the following issue: FileCheck %s -check-prefix=CHECK,POPCOUNT FileCheck will catch it later, but I think we can warn here too. Now it warns: ./update_llc_test_checks.py file.ll WARNING: Supplied prefix 'CHECK,POPCOUNT' is invalid. Prefix must contain only alphanumeric characters, hyphens and underscores. Did you mean --check-prefixes=CHECK,POPCOUNT? Reviewers: lebedev.ri, spatel, RKSimon, craig.topper, nikic, gbedwell Reviewed By: RKSimon Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64589 llvm-svn: 367244
Diffstat (limited to 'llvm/utils/update_cc_test_checks.py')
-rwxr-xr-xllvm/utils/update_cc_test_checks.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py
index 865ebf7ff57..205b57698da 100755
--- a/llvm/utils/update_cc_test_checks.py
+++ b/llvm/utils/update_cc_test_checks.py
@@ -168,6 +168,7 @@ def main():
# Extract -check-prefix in FileCheck args
filecheck_cmd = commands[-1]
+ common.verify_filecheck_prefixes(filecheck_cmd)
if not filecheck_cmd.startswith('FileCheck '):
print('WARNING: Skipping non-FileChecked RUN line: ' + l, file=sys.stderr)
continue
OpenPOWER on IntegriCloud