Commit bfc5faed authored by Michael Beck's avatar Michael Beck
Browse files

- renamed variadicity to ir_variadicity

[r25285]
parent 63f5de37
......@@ -1888,19 +1888,19 @@ ir_type *get_method_value_res_type(const ir_type *method);
* variable amount of arguments (e.g. C's printf). Default is
* non_variadic.
*/
typedef enum variadicity {
variadicity_non_variadic, /**< non variadic */
variadicity_variadic /**< variadic */
} variadicity;
typedef enum ir_variadicity {
variadicity_non_variadic, /**< non variadic */
variadicity_variadic /**< variadic */
} ir_variadicity;
/** Returns the null-terminated name of this variadicity. */
const char *get_variadicity_name(variadicity vari);
const char *get_variadicity_name(ir_variadicity vari);
/** Returns the variadicity of a method. */
variadicity get_method_variadicity(const ir_type *method);
ir_variadicity get_method_variadicity(const ir_type *method);
/** Sets the variadicity of a method. */
void set_method_variadicity(ir_type *method, variadicity vari);
void set_method_variadicity(ir_type *method, ir_variadicity vari);
/**
* Returns the first variadic parameter index of a type.
......
......@@ -5720,7 +5720,7 @@ static ir_node *transform_node_Call(ir_node *call) {
ident *id;
dbg_info *db;
int i, n_res, n_param;
variadicity var;
ir_variadicity var;
if (! is_Proj(callee))
return call;
......
......@@ -86,7 +86,7 @@ static ir_type *create_modified_mtd_type(const lower_params_t *lp, ir_type *mtp)
ident *id;
add_hidden hidden_params;
int changed = 0;
variadicity var;
ir_variadicity var;
if (is_lowered_type(mtp)) {
/* the type is already lowered. Not handled yet. */
......
......@@ -1390,7 +1390,7 @@ ir_type *get_method_value_res_type(const ir_type *method) {
}
/* Returns the null-terminated name of this variadicity. */
const char *get_variadicity_name(variadicity vari) {
const char *get_variadicity_name(ir_variadicity vari) {
#define X(a) case a: return #a
switch (vari) {
X(variadicity_non_variadic);
......@@ -1401,12 +1401,12 @@ const char *get_variadicity_name(variadicity vari) {
#undef X
}
variadicity get_method_variadicity(const ir_type *method) {
ir_variadicity get_method_variadicity(const ir_type *method) {
assert(method && (method->type_op == type_method));
return method->attr.ma.variadicity;
}
void set_method_variadicity(ir_type *method, variadicity vari) {
void set_method_variadicity(ir_type *method, ir_variadicity vari) {
assert(method && (method->type_op == type_method));
method->attr.ma.variadicity = vari;
}
......
......@@ -74,7 +74,7 @@ typedef struct {
int n_res; /**< Number of results. */
tp_ent_pair *res_type; /**< Array of result type/value ir_entity pairs. */
ir_type *value_ress; /**< A type whose entities represent copied value results. */
variadicity variadicity; /**< The variadicity of the method. */
ir_variadicity variadicity; /**< The variadicity of the method. */
int first_variadic_param; /**< The index of the first variadic parameter or -1 if non-variadic .*/
unsigned additional_properties; /**< Set of additional method properties. */
unsigned irg_calling_conv; /**< A set of calling convention flags. */
......
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