From 97a17a51b8e6eca31fd6421511f1907e6e95b415 Mon Sep 17 00:00:00 2001 From: Koichi Sasada Date: Fri, 13 Dec 2019 17:26:12 +0900 Subject: 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. --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.c') 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; -- cgit v1.2.3