added callbacks and adapted interfaces for abstract machine specification
[libfirm] / ir / be / arm / arm_transform.c
index 02cc859..80d1686 100644 (file)
@@ -139,7 +139,6 @@ unsigned int arm_decode_imm_w_shift(tarval *tv) {
  */
 static ir_node *create_const_graph_value(ir_node *irn, ir_node *block, unsigned int value) {
        ir_node *result;
-       int negate = 0;
        vals v, vn;
        int cnt;
        ir_mode *mode = get_irn_mode(irn);
@@ -951,12 +950,12 @@ static ir_node *gen_CopyB(ir_node *irn, arm_code_gen_t *cg) {
  * access must be done relative the the fist IncSP ...
  */
 static int get_sp_expand_offset(ir_node *inc_sp) {
-       unsigned offset    = be_get_IncSP_offset(inc_sp);
-       be_stack_dir_t dir = be_get_IncSP_direction(inc_sp);
+       int offset = be_get_IncSP_offset(inc_sp);
 
-       if (offset == BE_STACK_FRAME_SIZE)
+       if (offset == BE_STACK_FRAME_SIZE_EXPAND)
                return 0;
-       return dir == be_stack_dir_expand ? (int)offset : -(int)offset;
+
+       return offset;
 }
 
 static ir_node *gen_StackParam(ir_node *irn, arm_code_gen_t *cg) {
@@ -1124,7 +1123,6 @@ static ir_node *gen_FrameStore(ir_node *irn, arm_code_gen_t *cg) {
  * move constants out of the start block
  */
 void arm_move_consts(ir_node *node, void *env) {
-       arm_code_gen_t *cgenv = (arm_code_gen_t *)env;
        int i;
 
        if (is_Block(node))