diff options
author | Koichi Sasada <[email protected]> | 2019-12-13 17:26:12 +0900 |
---|---|---|
committer | Koichi Sasada <[email protected]> | 2019-12-13 17:55:45 +0900 |
commit | 97a17a51b8e6eca31fd6421511f1907e6e95b415 (patch) | |
tree | a5ed30bd4542954dc3473b3011068241c02749d2 /compile.c | |
parent | 1140625cd31f7ad74c42dc625b9dab389b12653c (diff) |
readable function names for inline functions.
Now, C functions written by __builtin_cexpr!(code) and others are
named as "__builtin_inline#{n}". However, it is difficult to know
what the function is. This patch rename them into
"__builtin_foo_#{lineno}" when cexpr! is in 'foo' method.
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6954,7 +6954,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in strcmp("cexpr!", builtin_func) == 0) { inlinec:; int inline_index = GET_VM()->builtin_inline_index++; - snprintf(inline_func, 0x20, "builtin_inline%d", inline_index); + snprintf(inline_func, 0x20, "_bi%d", inline_index); builtin_func = inline_func; args_node = NULL; goto retry; |