]> granicus.if.org Git - yasm/commit
* bc-int.h (yasm_bytecode): Add new pointer to array symrecs. This is a
authorPeter Johnson <peter@tortall.net>
Mon, 13 Sep 2004 02:44:00 +0000 (02:44 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 13 Sep 2004 02:44:00 +0000 (02:44 -0000)
commitad2c7b3e3fc570be20a8c29dd2f464e587324e36
tree76c9da71739de8017a499b0f0cad7837c8c24146
parentddbfba0fbe2b13e600a2a3f3c7a075f4231f2b50
* bc-int.h (yasm_bytecode): Add new pointer to array symrecs.  This is a
NULL-terminated array of labels that point to this bytecode (as the bytecode
previous to the label).  NULL if no labels point to this bytecode.

* bytecode.c (yasm_bc_create_common): Initialize symrecs variable to NULL.
* bytecode.c (yasm_bc_destroy): Delete symrecs variable.

* bytecode.h (yasm_bc__add_symrec): Declare new function.
* bytecode.c (yasm_bc__add_symrec): New.

* symrec.c (yasm_symtab_define_label): Call yasm_bc__add_symrec().

This new functionality is needed to make writing certain dbgfmt routines
easier.

svn path=/trunk/yasm/; revision=1147
libyasm/bc-int.h
libyasm/bytecode.c
libyasm/bytecode.h
libyasm/symrec.c