aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2019-12-13 17:26:12 +0900
committerKoichi Sasada <ko1@atdot.net>2019-12-13 17:55:45 +0900
commit97a17a51b8e6eca31fd6421511f1907e6e95b415 (patch)
treea5ed30bd4542954dc3473b3011068241c02749d2 /compile.c
parent1140625cd31f7ad74c42dc625b9dab389b12653c (diff)
downloadruby-97a17a51b8e6eca31fd6421511f1907e6e95b415.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index d8fff33493..1e6400448c 100644
--- a/compile.c
+++ b/compile.c
@@ -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;