Output proper local lables (starting with .L/L) for the PIC base, switch tables and...
[libfirm] / ir / be / beinsn.c
index 6ae5612..167a2b2 100644 (file)
@@ -30,9 +30,9 @@
 #include "irnode_t.h"
 #include "iredges.h"
 
-#include "besched_t.h"
+#include "besched.h"
 #include "beinsn_t.h"
-#include "beirg_t.h"
+#include "beirg.h"
 #include "beabi.h"
 #include "raw_bitset.h"
 
@@ -43,7 +43,8 @@
  * @param insn     the be_insn that is build
  * @param mach_op  the machine operand for which uses are added
  */
-static void add_machine_operands(const be_insn_env_t *env, be_insn_t *insn, ir_node *mach_op) {
+static void add_machine_operands(const be_insn_env_t *env, be_insn_t *insn, ir_node *mach_op)
+{
        struct obstack *obst = env->obst;
        int i, n;
 
@@ -85,8 +86,7 @@ be_insn_t *be_scan_insn(const be_insn_env_t *env, ir_node *irn)
        int i, n;
        int pre_colored = 0;
 
-       insn = obstack_alloc(obst, sizeof(insn[0]));
-       memset(insn, 0, sizeof(insn[0]));
+       insn = OALLOCZ(obst, be_insn_t);
 
        insn->irn       = irn;
        insn->next_insn = sched_next(irn);