Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a81a02b5
Commit
a81a02b5
authored
Feb 04, 2009
by
Moritz Kroll
Browse files
Prepare ir_io scripts for Jam
[r25426]
parent
87a94af7
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/gen_ir_io.py
View file @
a81a02b5
...
...
@@ -187,11 +187,11 @@ import_attrs_template = env.from_string('''
def
main
(
argv
):
"""the main function"""
if
len
(
argv
)
<
2
:
print
"usage: %s destdirectory"
%
argv
[
0
]
if
len
(
argv
)
<
3
:
print
"usage: %s
specname(ignored)
destdirectory"
%
argv
[
0
]
sys
.
exit
(
1
)
gendir
=
argv
[
1
]
gendir
=
argv
[
2
]
file
=
open
(
gendir
+
"/gen_irio_export.inl"
,
"w"
);
for
nodename
,
node
in
ir_spec
.
nodes
.
iteritems
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment