Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2b77fcdc
Commit
2b77fcdc
authored
Feb 21, 2009
by
Moritz Kroll
Browse files
irio: Save method variadicity
[r25541]
parent
146b796a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irio.c
View file @
2b77fcdc
...
...
@@ -393,6 +393,7 @@ static void export_type(io_env_t *env, ir_type *tp)
fprintf
(
f
,
"%ld "
,
get_type_nr
(
get_method_param_type
(
tp
,
i
)));
for
(
i
=
0
;
i
<
nresults
;
i
++
)
fprintf
(
f
,
"%ld "
,
get_type_nr
(
get_method_res_type
(
tp
,
i
)));
fprintf
(
f
,
"%d "
,
get_method_first_variadic_param_index
(
tp
));
break
;
}
...
...
@@ -1035,6 +1036,7 @@ static void import_type(io_env_t *env, keyword_t kwkind)
unsigned
addprops
=
(
unsigned
)
read_long
(
env
);
int
nparams
=
(
int
)
read_long
(
env
);
int
nresults
=
(
int
)
read_long
(
env
);
int
variaindex
;
type
=
new_type_method
(
id
,
nparams
,
nresults
);
...
...
@@ -1053,6 +1055,14 @@ static void import_type(io_env_t *env, keyword_t kwkind)
set_method_res_type
(
type
,
i
,
restype
);
}
variaindex
=
(
int
)
read_long
(
env
);
if
(
variaindex
!=
-
1
)
{
set_method_variadicity
(
type
,
variadicity_variadic
);
if
(
variaindex
!=
nparams
)
set_method_first_variadic_param_index
(
type
,
variaindex
);
}
set_method_calling_convention
(
type
,
callingconv
);
set_method_additional_properties
(
type
,
addprops
);
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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