From 7735c1f5fe4eabd97fe63d7113fc12fc25c877b7 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 22 Aug 2017 04:22:01 +0000 Subject: tool/instruction.rb: move logics to templates git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/vmtc.inc.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'template/vmtc.inc.tmpl') diff --git a/template/vmtc.inc.tmpl b/template/vmtc.inc.tmpl index 3d9935dcaa..3c313113a5 100644 --- a/template/vmtc.inc.tmpl +++ b/template/vmtc.inc.tmpl @@ -13,7 +13,9 @@ */ static const void *const insns_address_table[] = { -<%= insns_table %> +% @insns.each do |insn| + LABEL_PTR(<%=insn.name%>), +% end }; ASSERT_VM_INSTRUCTION_SIZE(insns_address_table); -- cgit v1.2.3