Panic when get_irn_Proj_for_mode() does not find a Proj.
[libfirm] / ir / be / arm / arm_new_nodes.c
index 61e2f87..0c8f546 100644 (file)
 #include "beabi.h"
 #include "bearch_arm_t.h"
 
-const char *arm_get_fpa_imm_name(long imm_value)
-{
-       static const char *fpa_imm[] = {
-               "0",
-               "1",
-               "2",
-               "3",
-               "4",
-               "5",
-               "10",
-               "0.5"
-       };
-       return fpa_imm[imm_value];
-}
-
 static bool arm_has_symconst_attr(const ir_node *node)
 {
        return is_arm_SymConst(node) || is_arm_FrameAddr(node) || is_arm_Bl(node);
@@ -99,7 +84,7 @@ static bool has_farith_attr(const ir_node *node)
  * @param n        the node to dump
  * @param reason   indicates which kind of information should be dumped
  */
-static void arm_dump_node(FILE *F, ir_node *n, dump_reason_t reason)
+static void arm_dump_node(FILE *F, const ir_node *n, dump_reason_t reason)
 {
        switch (reason) {
        case dump_node_opcode_txt:
@@ -326,14 +311,12 @@ void set_arm_CondJmp_relation(ir_node *node, ir_relation relation)
 /* Set the ARM machine node attributes to default values. */
 static void init_arm_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);
        struct obstack *obst = get_irg_obstack(irg);
        arm_attr_t     *attr = get_arm_attr(node);
        backend_info_t *info;
-       (void) execution_units;
 
        arch_set_irn_flags(node, flags);
        arch_set_irn_register_reqs_in(node, in_reqs);