replace some obstack_alloc () calls with the XOBNEW wrapper
[deliverable/binutils-gdb.git] / gas / config / tc-bfin.c
index e14fbe18b88679dd2cba19a8afcce08ac70bd196..c7b9d8d0716c85b89370dd8f97d9afd56959791d 100644 (file)
@@ -937,7 +937,7 @@ note_reloc2 (INSTR_T code, const char *symbol, int reloc, int value, int pcrel)
 INSTR_T
 gencode (unsigned long x)
 {
-  INSTR_T cell = obstack_alloc (&mempool, sizeof (struct bfin_insn));
+  INSTR_T cell = XOBNEW (&mempool, struct bfin_insn);
   memset (cell, 0, sizeof (struct bfin_insn));
   cell->value = (x);
   return cell;
This page took 0.0415720000000001 seconds and 4 git commands to generate.