get_Call_n_params: use int for consistency
[libfirm] / ir / be / amd64 / amd64_new_nodes.c
index f26b622..e2df082 100644 (file)
@@ -22,7 +22,6 @@
  * @brief   This file implements the creation of the achitecture specific firm
  *          opcodes and the coresponding node constructors for the amd64
  *          assembler irg.
- * @version $Id: amd64_new_nodes.c 26673 2009-10-01 16:43:13Z matze $
  */
 #include "config.h"
 
@@ -38,7 +37,7 @@
 #include "irprintf.h"
 #include "xmalloc.h"
 
-#include "../bearch.h"
+#include "bearch.h"
 
 #include "amd64_nodes_attr.h"
 #include "amd64_new_nodes.h"
@@ -56,7 +55,7 @@ void set_amd64_ls_mode(ir_node *node, ir_mode *mode)
  * @param n        the node to dump
  * @param reason   indicates which kind of information should be dumped
  */
-static void amd64_dump_node(FILE *F, ir_node *n, dump_reason_t reason)
+static void amd64_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
 {
        ir_mode *mode = NULL;
 
@@ -119,7 +118,6 @@ amd64_SymConst_attr_t *get_amd64_SymConst_attr(ir_node *node)
  */
 static void init_amd64_attributes(ir_node *node, arch_irn_flags_t flags,
                               const arch_register_req_t **in_reqs,
-                              const be_execution_unit_t ***execution_units,
                               int n_res)
 {
        ir_graph        *irg  = get_irn_irg(node);
@@ -127,10 +125,9 @@ static void init_amd64_attributes(ir_node *node, arch_irn_flags_t flags,
        amd64_attr_t *attr    = get_amd64_attr(node);
 
        backend_info_t  *info;
-       (void) execution_units;
 
-       arch_irn_set_flags(node, flags);
-       arch_set_in_register_reqs(node, in_reqs);
+       arch_set_irn_flags(node, flags);
+       arch_set_irn_register_reqs_in(node, in_reqs);
 
        info            = be_get_info(node);
        info->out_infos = NEW_ARR_D(reg_out_info_t, obst, n_res);