]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
remove _jit_regs_get_cpu function
authorAleksey Demakov <ademakov@gmail.com>
Fri, 27 Mar 2009 21:00:13 +0000 (21:00 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Fri, 27 Mar 2009 21:00:13 +0000 (21:00 +0000)
ChangeLog
jit/jit-reg-alloc.c
jit/jit-reg-alloc.h

index bdff4fd074aee084d7b969d9a926bfa8982ef48a..e58df7fadc6a0b58d0e1967536029634cf2a3db5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-28  Aleksey Demakov  <ademakov@gmail.com>
+
+       * jit/jit-reg-alloc.c, jit/jit-reg-alloc.c (_jit_regs_get_cpu):
+       remove unused function.
+
 2009-03-25  Michele Tartara  <mikyt@users.sourceforge.net>
 
        * jit/jit-gen-arm.h (arm_alu_cc_reg): fix a typo.
index 5435ba7df8b03737d61cb5915c960b19977a5e7f..15eb4b7d90d0148458e6d9926896bc58c72ac90c 100644 (file)
@@ -2700,45 +2700,6 @@ int _jit_regs_needs_long_pair(jit_type_t type)
 #endif
 }
 
-/*@
- * @deftypefun int _jit_regs_get_cpu (jit_gencode_t gen, int reg, int *other_reg)
- * Get the CPU register that corresponds to a pseudo register.
- * "other_reg" will be set to the other register in a pair,
- * or -1 if the register is not part of a pair.
- * @end deftypefun
-@*/
-int _jit_regs_get_cpu(jit_gencode_t gen, int reg, int *other_reg)
-{
-       int cpu_reg, other;
-
-#ifdef JIT_REG_STACK
-       if(IS_STACK_REG(reg))
-       {
-               reg = gen->reg_stack_top - reg;
-               cpu_reg = _jit_reg_info[reg].cpu_reg;
-               other = -1;
-       }
-       else
-#endif
-       {
-               cpu_reg = _jit_reg_info[reg].cpu_reg;
-               if(gen->contents[reg].is_long_start)
-               {
-                       other = _jit_reg_info[reg].other_reg;
-                       other = _jit_reg_info[other].cpu_reg;
-               }
-               else
-               {
-                       other = -1;
-               }
-       }
-       if(other_reg)
-       {
-               *other_reg = other;
-       }
-       return cpu_reg;
-}
-
 /*@
  * @deftypefun void _jit_regs_alloc_global (jit_gencode_t gen, jit_function_t func)
  * Perform global register allocation on the values in @code{func}.
index 75944b58f0412003acf326654a17e4fd68444320..416e227dc51bf5f8e7af30fca8c4ee2ed5c67217 100644 (file)
@@ -142,7 +142,6 @@ typedef struct
 
 int _jit_regs_lookup(char *name);
 int _jit_regs_needs_long_pair(jit_type_t type);
-int _jit_regs_get_cpu(jit_gencode_t gen, int reg, int *other_reg);
 
 void _jit_regs_alloc_global(jit_gencode_t gen, jit_function_t func);
 void _jit_regs_init_for_block(jit_gencode_t gen);