mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Add the label to the block to which it refers.
This commit is contained in:
parent
c158b14286
commit
90a2738459
2 changed files with 4 additions and 0 deletions
|
@ -61,7 +61,9 @@ typedef struct statement_s {
|
||||||
typedef struct sblock_s {
|
typedef struct sblock_s {
|
||||||
struct sblock_s *next;
|
struct sblock_s *next;
|
||||||
struct reloc_s *relocs;
|
struct reloc_s *relocs;
|
||||||
|
struct ex_label_s *labels;
|
||||||
int offset; ///< offset of first statement of block
|
int offset; ///< offset of first statement of block
|
||||||
|
int reachable;
|
||||||
statement_t *statements;
|
statement_t *statements;
|
||||||
statement_t **tail;
|
statement_t **tail;
|
||||||
} sblock_t;
|
} sblock_t;
|
||||||
|
|
|
@ -665,6 +665,8 @@ statement_label (sblock_t *sblock, expr_t *e)
|
||||||
sblock = sblock->next;
|
sblock = sblock->next;
|
||||||
}
|
}
|
||||||
e->e.label.dest = sblock;
|
e->e.label.dest = sblock;
|
||||||
|
e->e.label.next = sblock->labels;
|
||||||
|
sblock->labels = &e->e.label;
|
||||||
return sblock;
|
return sblock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue