summaryrefslogtreecommitdiffstats
path: root/llvm/utils/update_cc_test_checks.py
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2019-11-01 11:17:27 -0500
committerJohannes Doerfert <johannes@jdoerfert.de>2019-11-01 11:34:00 -0500
commite67f6477fd1ed29acbeddf8482c25d8db826912f (patch)
tree68fe5f7d4b015c789b8679c8c51c0a51af41cbc3 /llvm/utils/update_cc_test_checks.py
parent3a399c098782c8d251c136fafa06be97cbf5d99c (diff)
downloadbcm5719-llvm-e67f6477fd1ed29acbeddf8482c25d8db826912f.tar.gz
bcm5719-llvm-e67f6477fd1ed29acbeddf8482c25d8db826912f.zip
[Utils] Hide the default behavior change of D68819 under a flag
With D69701, the options used when running the script on a file will be recorded and reused on a rerun. This allows us to hide new features behind flags, starting with the "define" that was introduced in D68819.
Diffstat (limited to 'llvm/utils/update_cc_test_checks.py')
-rwxr-xr-xllvm/utils/update_cc_test_checks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/update_cc_test_checks.py b/llvm/utils/update_cc_test_checks.py
index 2e1a190779f..169768739cc 100755
--- a/llvm/utils/update_cc_test_checks.py
+++ b/llvm/utils/update_cc_test_checks.py
@@ -187,7 +187,7 @@ def main():
for filename in args.tests:
with open(filename) as f:
input_lines = [l.rstrip() for l in f]
-
+
first_line = input_lines[0] if input_lines else ""
if 'autogenerated' in first_line and script_name not in first_line:
common.warn("Skipping test which wasn't autogenerated by " + script_name, filename)
@@ -298,7 +298,7 @@ def main():
if added:
output_lines.append('//')
added.add(mangled)
- common.add_ir_checks(output_lines, '//', run_list, func_dict, mangled, False)
+ common.add_ir_checks(output_lines, '//', run_list, func_dict, mangled, False, False)
output_lines.append(line.rstrip('\n'))
# Update the test file.
OpenPOWER on IntegriCloud