summaryrefslogtreecommitdiff
path: root/template/insns_info.inc.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/insns_info.inc.tmpl')
-rw-r--r--template/insns_info.inc.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index 5ac92f8..d7e745b 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -23,10 +23,13 @@ static int insn_len_info[] = {
<%= operands_num_info %>
};
+#ifdef USE_INSN_RET_NUM
static int insn_stack_push_num_info[] = {
<%= stack_num_info %>
};
+#endif
+#ifdef USE_INSN_STACK_INCREASE
static int
insn_stack_increase(int depth, int insn, VALUE *opes)
{
@@ -37,6 +40,7 @@ insn_stack_increase(int depth, int insn, VALUE *opes)
}
return 0;
}
+#endif
/* some utilities */
@@ -70,8 +74,10 @@ insn_op_type(int insn, int pos)
}
}
+#ifdef USE_INSN_RET_NUM
static int
insn_ret_num(int insn)
{
return insn_stack_push_num_info[insn];
}
+#endif