]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
removing ir_function_get_local - it's unused
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 00e2ddc0382229d5d60f58a12bbafe6388e81b5d..324335fe833d375a476467bceecf8d38d6af5d04 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -133,6 +133,9 @@ typedef struct ir_instr_s
     /* For the temp-allocation */
     size_t eid;
 
+    /* For IFs */
+    bool   likely;
+
     struct ir_block_s *owner;
 } ir_instr;
 
@@ -240,9 +243,6 @@ typedef struct ir_function_s
     /* locally defined variables */
     ir_value **locals;
 
-    /* how many of the locals are parameters */
-    size_t max_parameters;
-
     size_t allocated_locals;
 
     ir_block*     first;
@@ -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*);