fix an offset bug in allocating memory for irg phases
[libfirm] / ir / be / TEMPLATE / bearch_TEMPLATE.c
index b436c69..f7a8f5e 100644 (file)
@@ -217,7 +217,7 @@ static arch_env_t *TEMPLATE_init(FILE *outfile)
        static int run_once = 0;
        TEMPLATE_isa_t *isa;
 
-       if(run_once)
+       if (run_once)
                return NULL;
        run_once = 1;
 
@@ -305,7 +305,7 @@ static ir_type *TEMPLATE_get_between_type(void *self)
        static ir_entity *old_bp_ent = NULL;
        (void) self;
 
-       if(!between_type) {
+       if (!between_type) {
                ir_entity *ret_addr_ent;
                ir_type *ret_addr_type = new_type_primitive(mode_P);
                ir_type *old_bp_type   = new_type_primitive(mode_P);
@@ -333,7 +333,7 @@ static const arch_register_t *TEMPLATE_abi_prologue(void *self, ir_node **mem,
        (void) mem;
        (void) stack_bias;
 
-       if(env->flags.try_omit_fp)
+       if (env->flags.try_omit_fp)
                return env->arch_env->sp;
        return env->arch_env->bp;
 }
@@ -407,7 +407,7 @@ int TEMPLATE_to_appear_in_schedule(void *block_env, const ir_node *irn)
 {
        (void) block_env;
 
-       if(!is_TEMPLATE_irn(irn))
+       if (!is_TEMPLATE_irn(irn))
                return -1;
 
        return 1;
@@ -458,7 +458,8 @@ static int TEMPLATE_get_reg_class_alignment(const arch_register_class_t *cls)
 /**
  * Returns the libFirm configuration parameter for this backend.
  */
-static const backend_params *TEMPLATE_get_backend_params(void) {
+static const backend_params *TEMPLATE_get_backend_params(void)
+{
        static backend_params p = {
                0,     /* no dword lowering */
                0,     /* no inline assembly */