aboutsummaryrefslogtreecommitdiff
path: root/gcc/python/py-runtime.def
diff options
context:
space:
mode:
authorredbrain <redbrain@gcc.gnu.org>2012-04-19 18:12:21 +0100
committerredbrain <redbrain@gcc.gnu.org>2012-04-19 18:12:21 +0100
commit30903ba9eb9e6b3f3d926041cfc438c71377d6f6 (patch)
tree7b354ef88fc891de196333aece719d8a088896ab /gcc/python/py-runtime.def
parent381d5e664c825841aed30644bf53aabc731aebb6 (diff)
mid changes to argument passing
Diffstat (limited to 'gcc/python/py-runtime.def')
-rw-r--r--gcc/python/py-runtime.def14
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/python/py-runtime.def b/gcc/python/py-runtime.def
index 0fb82f34bd7..81484017119 100644
--- a/gcc/python/py-runtime.def
+++ b/gcc/python/py-runtime.def
@@ -70,7 +70,19 @@ py-runtime = { code = GPY_RR_fold_func_decl;
arguments = "tree identifier, tree func";
proto = "tree, tree";
comment = "/* Fold func into decl <identifier><fndcel> */";
- function_identifier = "gpy_rr_fold_class_decl";
+ function_identifier = "gpy_rr_fold_staticmethod_decl";
+ fntype = "gpy_object_type_ptr,
+ gpy_const_char_ptr,
+ ptr_type_node,
+ NULL_TREE";
+ build_call = build_call_expr;
+ build_call_args = "fndecl, 2, identifier, build_fold_addr_expr (func)";
+ };
+py-runtime = { code = GPY_RR_fold_classmethod_decl;
+ arguments = "tree identifier, tree func";
+ proto = "tree, tree";
+ comment = "/* Fold func into decl <identifier><fndcel> */";
+ function_identifier = "gpy_rr_fold_classmethod_decl";
fntype = "gpy_object_type_ptr,
gpy_const_char_ptr,
ptr_type_node,