we don't need no stinking selfs
[libfirm] / ir / be / TEMPLATE / bearch_TEMPLATE.c
index c1fd4b6..5f40b13 100644 (file)
@@ -72,12 +72,11 @@ static set *cur_reg_set = NULL;
  * If the node returns a tuple (mode_T) then the proj's
  * will be asked for this information.
  */
-static const
-arch_register_req_t *TEMPLATE_get_irn_reg_req(const void *self,
-                                              const ir_node *node, int pos) {
+static const arch_register_req_t *TEMPLATE_get_irn_reg_req(const ir_node *node,
+                                                           int pos)
+{
        long               node_pos = pos == -1 ? 0 : pos;
        ir_mode           *mode     = get_irn_mode(node);
-       (void) self;
 
        if (mode == mode_T || mode == mode_M) {
                return arch_no_register_req;
@@ -115,10 +114,9 @@ arch_register_req_t *TEMPLATE_get_irn_reg_req(const void *self,
        return arch_no_register_req;
 }
 
-static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_register_t *reg)
+static void TEMPLATE_set_irn_reg(ir_node *irn, const arch_register_t *reg)
 {
        int pos = 0;
-       (void) self;
 
        if (is_Proj(irn)) {
                pos = TEMPLATE_translate_proj_pos(irn);
@@ -137,13 +135,10 @@ static void TEMPLATE_set_irn_reg(const void *self, ir_node *irn, const arch_regi
        }
 }
 
-static
-const arch_register_t *TEMPLATE_get_irn_reg(const void *self,
-                                            const ir_node *irn)
+static const arch_register_t *TEMPLATE_get_irn_reg(const ir_node *irn)
 {
        int pos = 0;
        const arch_register_t *reg = NULL;
-       (void) self;
 
        if (is_Proj(irn)) {
                pos = TEMPLATE_translate_proj_pos(irn);
@@ -162,9 +157,9 @@ const arch_register_t *TEMPLATE_get_irn_reg(const void *self,
        return reg;
 }
 
-static arch_irn_class_t TEMPLATE_classify(const void *self, const ir_node *irn) {
+static arch_irn_class_t TEMPLATE_classify(const ir_node *irn)
+{
        irn = skip_Proj_const(irn);
-       (void) self;
 
        if (is_cfop(irn)) {
                return arch_irn_class_branch;
@@ -176,9 +171,9 @@ static arch_irn_class_t TEMPLATE_classify(const void *self, const ir_node *irn)
        return 0;
 }
 
-static arch_irn_flags_t TEMPLATE_get_flags(const void *self, const ir_node *irn) {
+static arch_irn_flags_t TEMPLATE_get_flags(const ir_node *irn)
+{
        irn = skip_Proj_const(irn);
-       (void) self;
 
        if (is_TEMPLATE_irn(irn)) {
                return get_TEMPLATE_flags(irn);
@@ -190,15 +185,15 @@ static arch_irn_flags_t TEMPLATE_get_flags(const void *self, const ir_node *irn)
        return 0;
 }
 
-static ir_entity *TEMPLATE_get_frame_entity(const void *self, const ir_node *node) {
-       (void) self;
+static ir_entity *TEMPLATE_get_frame_entity(const ir_node *node)
+{
        (void) node;
        /* TODO: return the ir_entity assigned to the frame */
        return NULL;
 }
 
-static void TEMPLATE_set_frame_entity(const void *self, ir_node *node, ir_entity *ent) {
-       (void) self;
+static void TEMPLATE_set_frame_entity(ir_node *node, ir_entity *ent)
+{
        (void) node;
        (void) ent;
        /* TODO: set the ir_entity assigned to the frame */
@@ -208,15 +203,15 @@ static void TEMPLATE_set_frame_entity(const void *self, ir_node *node, ir_entity
  * This function is called by the generic backend to correct offsets for
  * nodes accessing the stack.
  */
-static void TEMPLATE_set_frame_offset(const void *self, ir_node *irn, int offset) {
-       (void) self;
+static void TEMPLATE_set_frame_offset(ir_node *irn, int offset)
+{
        (void) irn;
        (void) offset;
        /* TODO: correct offset if irn accesses the stack */
 }
 
-static int TEMPLATE_get_sp_bias(const void *self, const ir_node *irn) {
-       (void) self;
+static int TEMPLATE_get_sp_bias(const ir_node *irn)
+{
        (void) irn;
        return 0;
 }