From 2f3fbc1c9c663ec40f5d5a2d6abd09ad33ec63f6 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 17 Jul 2019 23:17:37 -0400 Subject: [PATCH] Use flatten() --- crossplatform_ir_generation.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/crossplatform_ir_generation.py b/crossplatform_ir_generation.py index 92b2adb..4f3a266 100644 --- a/crossplatform_ir_generation.py +++ b/crossplatform_ir_generation.py @@ -194,15 +194,7 @@ def generate(converted): return CIRProgram( entry_list=( CIRLabel(label='__main__'), - ) + tuple( - referenced_entry - for referenced_entry_list in referenced_entry_list_list - for referenced_entry in referenced_entry_list - ) + tuple( - instruction - for instruction_list in instruction_list_list - for instruction in instruction_list - ), + ) + flatten(referenced_entry_list_list) + flatten(instruction_list_list), ) def output(program): -- 2.20.1