diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2018-11-26 12:47:28 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2018-12-26 06:40:27 +1100 |
commit | d88a117eaa39b1d0eb1a79fe84c81840a39eb233 (patch) | |
tree | e586a2c98775f5e56d3f9a0614efb3a12456eb68 /tcg/tcg.h | |
parent | 15d7409260498505e991e7b9d87118627165e613 (diff) |
tcg: Reference count labels
Increment when adding branches, and decrement when removing them.
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -244,7 +244,8 @@ typedef struct TCGRelocation { typedef struct TCGLabel { unsigned has_value : 1; - unsigned id : 31; + unsigned id : 15; + unsigned refs : 16; union { uintptr_t value; tcg_insn_unit *value_ptr; |