mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Store the initializer expression in the def.
Initially, this will be used for collecting the targets of a jumpb instruction.
This commit is contained in:
parent
d7177a78e9
commit
ffa08a99c2
2 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ typedef struct def_s {
|
||||||
|
|
||||||
struct def_s *alias;
|
struct def_s *alias;
|
||||||
struct reloc_s *relocs; ///< for relocations
|
struct reloc_s *relocs; ///< for relocations
|
||||||
|
struct expr_s *initializer; ///< initialer expression
|
||||||
|
|
||||||
unsigned offset_reloc:1; ///< use *_def_ofs relocs
|
unsigned offset_reloc:1; ///< use *_def_ofs relocs
|
||||||
unsigned initialized:1;
|
unsigned initialized:1;
|
||||||
|
|
|
@ -527,4 +527,5 @@ initialize_def (symbol_t *sym, type_t *type, expr_t *init, defspace_t *space,
|
||||||
sym->s.def->nosave = 1;
|
sym->s.def->nosave = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sym->s.def->initializer = init;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue