projects
/
fur
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d34fc
)
Use flatten()
author
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 18 Jul 2019 03:17:37 +0000
(23:17 -0400)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 18 Jul 2019 03:17:37 +0000
(23:17 -0400)
crossplatform_ir_generation.py
patch
|
blob
|
history
diff --git
a/crossplatform_ir_generation.py
b/crossplatform_ir_generation.py
index
92b2adb
..
4f3a266
100644
(file)
--- 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):