removing ir_function_get_local - it's unused

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-25 13:33:00 +01:00
parent 613e1e7247
commit 060f995ca4
2 changed files with 0 additions and 16 deletions

15
ir.c
View file

@ -547,25 +547,10 @@ bool ir_function_finalize(ir_function *self)
return true;
}
ir_value* ir_function_get_local(ir_function *self, const char *name)
{
size_t i;
for (i = 0; i < vec_size(self->locals); ++i) {
if (!strcmp(self->locals[i]->name, name))
return self->locals[i];
}
return NULL;
}
ir_value* ir_function_create_local(ir_function *self, const char *name, int vtype, bool param)
{
ir_value *ve;
/*
if (ir_function_get_local(self, name))
return NULL;
*/
if (param &&
vec_size(self->locals) &&
self->locals[vec_size(self->locals)-1]->store != store_param) {

1
ir.h
View file

@ -271,7 +271,6 @@ void ir_function_collect_value(ir_function*, ir_value *value);
bool ir_function_set_name(ir_function*, const char *name);
ir_value* ir_function_get_local(ir_function *self, const char *name);
ir_value* ir_function_create_local(ir_function *self, const char *name, int vtype, bool param);
bool GMQCC_WARN ir_function_finalize(ir_function*);