*/
static void process_call(ir_node *call, ir_entity *callee, q_set *hmap)
{
- ir_type *mtp;
entry_t *key, *entry;
ir_node *call_param;
size_t i, n_params;
n_params = get_Call_n_params(call);
- /* Beware: we cannot clone variadic parameters as well as the
+ /* TODO
+ * Beware: we cannot clone variadic parameters as well as the
* last non-variadic one, which might be needed for the va_start()
* magic
*/
- mtp = get_Call_type(call);
/* In this for loop we collect the calls, that have
an constant parameter. */
/* Search the argument with the number pos.*/
for (i = get_irn_n_outs(irg_args) - 1; i >= 0; --i) {
ir_node *proj = get_irn_out(irg_args, i);
- if (pos == get_Proj_proj(proj)) {
+ if ((int)pos == get_Proj_proj(proj)) {
if (arg) {
/*
* More than one arg node found:
{
ir_entity *new_entity;
ident *clone_ident;
- symconst_symbol sym;
/* A counter for the clones.*/
static size_t nr = 0;
/* We need now a new ir_graph for our clone method. */
create_clone_proc_irg(new_entity, q);
- /* We must set the atomic value of our "new_entity". */
- sym.entity_p = new_entity;
-
/* The "new_entity" don't have this information. */
new_entity->attr.mtd_attr.param_access = NULL;
new_entity->attr.mtd_attr.param_weight = NULL;