mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
Remove additional function pointers that never change
Remove additional cached function pointers which point to static variables which are never actually changed. Just refer to the global variable instead. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
4
nasm.c
4
nasm.c
@@ -116,7 +116,7 @@ int64_t global_offset_changed; /* referenced in labels.c */
|
||||
int64_t prev_offset_changed;
|
||||
int32_t stall_count;
|
||||
|
||||
static struct location location;
|
||||
struct location location;
|
||||
int in_abs_seg; /* Flag we are in ABSOLUTE seg */
|
||||
int32_t abs_seg; /* ABSOLUTE segment basis */
|
||||
int32_t abs_offset; /* ABSOLUTE offset */
|
||||
@@ -364,8 +364,6 @@ int main(int argc, char **argv)
|
||||
|
||||
if (ofmt->stdmac)
|
||||
preproc->extra_stdmac(ofmt->stdmac);
|
||||
parser_global_info(&location);
|
||||
eval_global_info(ofmt, lookup_label, &location);
|
||||
|
||||
/* define some macros dependent of command-line */
|
||||
define_macros_late();
|
||||
|
||||
Reference in New Issue
Block a user