diff options
author | Alan Wu <[email protected]> | 2021-09-14 15:13:15 -0400 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:40 -0400 |
commit | bc7652998eb0f05379ba4247ab5202dc853496fa (patch) | |
tree | dcfcf35a3bdad37b20c10f3bffda3852c7d32662 /yjit_codegen.c | |
parent | 0ee8c606626cd3f92a07a4b1ae7ab546e22031ab (diff) |
Fix warnings about redefining YJIT_STATS
Follow up for ecb5b383a0c17550b9b27663005049ddac871edb. Now that
YJIT_STATS is defined in yjit.h, it shoudl be the only place that
defines it.
Diffstat (limited to 'yjit_codegen.c')
-rw-r--r-- | yjit_codegen.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/yjit_codegen.c b/yjit_codegen.c index e9f6e996f9..be0c7ca255 100644 --- a/yjit_codegen.c +++ b/yjit_codegen.c @@ -203,8 +203,7 @@ record_global_inval_patch(const codeblock_t *cb, uint32_t outline_block_target_p static bool jit_guard_known_klass(jitstate_t *jit, ctx_t* ctx, VALUE known_klass, insn_opnd_t insn_opnd, VALUE sample_instance, const int max_chain_depth, uint8_t *side_exit); -#if RUBY_DEBUG -# define YJIT_STATS 1 +#if YJIT_STATS // Add a comment at the current position in the code block static void @@ -290,14 +289,11 @@ verify_ctx(jitstate_t *jit, ctx_t *ctx) } #else -#ifndef YJIT_STATS -#define YJIT_STATS 0 -#endif // ifndef YJIT_STATS #define ADD_COMMENT(cb, comment) ((void)0) #define verify_ctx(jit, ctx) ((void)0) -#endif // if RUBY_DEBUG +#endif // if YJIT_STATS #if YJIT_STATS |