summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 706f4260..8183cffb 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -109,6 +109,14 @@ vardecl::set_arity (int a)
}
}
+bool
+vardecl::compatible_arity (int a)
+{
+ if (arity == -1)
+ return true;
+ return arity == a;
+}
+
functiondecl::functiondecl ():
body (0)