Skip to content

Commit 55f7c86

Browse files
committed
update_cc_test_checks: remove dead code
The tool verifies that the clang command line contains "-emit-llvm", and the asm module is never imported, so this code must be dead.
1 parent 330d898 commit 55f7c86

File tree

1 file changed

+12
-23
lines changed

1 file changed

+12
-23
lines changed

llvm/utils/update_cc_test_checks.py

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -415,29 +415,18 @@ def main():
415415

416416
# Now generate all the checks.
417417
def check_generator(my_output_lines, prefixes, func):
418-
if "-emit-llvm" in clang_args:
419-
return common.add_ir_checks(
420-
my_output_lines,
421-
"//",
422-
prefixes,
423-
func_dict,
424-
func,
425-
False,
426-
ti.args.function_signature,
427-
ti.args.version,
428-
global_vars_seen_dict,
429-
is_filtered=builder.is_filtered(),
430-
)
431-
else:
432-
return asm.add_checks(
433-
my_output_lines,
434-
"//",
435-
prefixes,
436-
func_dict,
437-
func,
438-
global_vars_seen_dict,
439-
is_filtered=builder.is_filtered(),
440-
)
418+
return common.add_ir_checks(
419+
my_output_lines,
420+
"//",
421+
prefixes,
422+
func_dict,
423+
func,
424+
False,
425+
ti.args.function_signature,
426+
ti.args.version,
427+
global_vars_seen_dict,
428+
is_filtered=builder.is_filtered(),
429+
)
441430

442431
if ti.args.check_globals != 'none':
443432
generated_prefixes.extend(

0 commit comments

Comments
 (0)