Commit b673a407 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unnecessary line-endings from beginning of generated files

[r28230]
parent 55c01739
......@@ -364,8 +364,8 @@ ir_node *new_{{node.constrname}}(
}
''')
irnode_h_template = env.from_string('''
/* Warning: automatically generated code */
irnode_h_template = env.from_string(
'''/* Warning: automatically generated code */
{%- for node in nodes|isnot('custom_is') %}
static inline int _is_{{node.name}}(const ir_node *node)
......@@ -381,8 +381,8 @@ static inline int _is_{{node.name}}(const ir_node *node)
''')
irnode_template = env.from_string('''
/* Warning: automatically generated code */
irnode_template = env.from_string(
'''/* Warning: automatically generated code */
{% for node in nodes %}
int (is_{{node.name}})(const ir_node *node)
{
......@@ -423,8 +423,8 @@ void (set_{{node.name}}_{{in}})(ir_node *node, ir_node *{{in|escape_keywords}})
{% endfor %}
''')
irop_template = env.from_string('''
/* Warning: automatically generated code */
irop_template = env.from_string(
'''/* Warning: automatically generated code */
{% for node in nodes %}
ir_op *op_{{node.name}}; ir_op *get_op_{{node.name}}(void) { return op_{{node.name}}; }
{%- endfor %}
......@@ -457,8 +457,8 @@ void finish_op(void)
''')
nodeops_h_template = env.from_string('''
/* Warning: automatically generated code */
nodeops_h_template = env.from_string(
'''/* Warning: automatically generated code */
#ifndef FIRM_IR_NODEOPS_H
#define FIRM_IR_NODEOPS_H
......@@ -505,8 +505,8 @@ FIRM_API void set_{{node.name}}_{{attr.name}}(ir_node *node, {{attr.type}} {{att
#endif
''')
opcodes_h_template = env.from_string('''
/* Warning: automatically generated code */
opcodes_h_template = env.from_string(
'''/* Warning: automatically generated code */
#ifndef FIRM_IR_OPCODES_H
#define FIRM_IR_OPCODES_H
......
......@@ -236,6 +236,7 @@ def main(argv):
real_nodes.append(node)
file = open(gendir + "/gen_irio_export.inl", "w");
file.write("/* Warning: automatically generated code */")
for node in real_nodes:
if node.customSerializer:
continue
......@@ -246,6 +247,7 @@ def main(argv):
file.close()
file = open(gendir + "/gen_irio_import.inl", "w");
file.write("/* Warning: automatically generated code */")
for node in real_nodes:
if node.customSerializer:
continue
......@@ -254,6 +256,7 @@ def main(argv):
file.close()
file = open(gendir + "/gen_irio_lex.inl", "w");
file.write("/* Warning: automatically generated code */")
for node in real_nodes:
file.write("\tINSERT(tt_iro, \"%s\", iro_%s);\n" % (node.name, node.name));
file.close()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment