aboutsummaryrefslogtreecommitdiffstats
path: root/template/vmtc.inc.tmpl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 04:22:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 04:22:01 +0000
commit14bda8d3c38113d32850e6f2169761d0a46fec10 (patch)
treedc9ac4c3d0307bfd6c5427f359070c433eb40e40 /template/vmtc.inc.tmpl
parent6dbfaa2ba036e983264f0dbea94f932974f94c4d (diff)
downloadruby-14bda8d3c38113d32850e6f2169761d0a46fec10.tar.gz
tool/instruction.rb: move logics to templates
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/vmtc.inc.tmpl')
-rw-r--r--template/vmtc.inc.tmpl4
1 files changed, 3 insertions, 1 deletions
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);