@@ -172,15 +172,6 @@ def _load_global_helpers():
172172 ll .add_symbol ("PyExc_%s" % (obj .__name__ ), id (obj ))
173173
174174
175- def print_overloads (overloads ):
176- for o in overloads :
177- print (type (o ), o )
178-
179- def print_defns (defns ):
180- for k ,v in defns .items ():
181- print ("Key:" , k , v , type (k ), type (v ))
182- print_overloads (v .versions )
183-
184175class BaseContext (object ):
185176 """
186177
@@ -435,9 +426,7 @@ def get_external_function_type(self, fndesc):
435426 return fnty
436427
437428 def declare_function (self , module , fndesc ):
438- #print("base.py: declare_function", module, "\n\targs:", fndesc.args, "\n\trestype:", fndesc.restype, "\n\targtypes:", fndesc.argtypes, fndesc.mangled_name, fndesc.noalias)
439429 fnty = self .call_conv .get_function_type (fndesc .restype , fndesc .argtypes )
440- #print("fnty:", fnty)
441430 fn = module .get_or_insert_function (fnty , name = fndesc .mangled_name )
442431 self .call_conv .decorate_function (fn , fndesc .args , fndesc .argtypes , noalias = fndesc .noalias )
443432 if fndesc .inline :
@@ -553,21 +542,14 @@ def get_function(self, fn, sig, _firstcall=True):
553542 The return value is a callable with the signature (builder, args).
554543 """
555544 assert sig is not None
556- # print("get_function", fn, sig, type(fn), type(sig))
557545 sig = sig .as_function ()
558- # print("get_function", sig, type(sig))
559546 if isinstance (fn , (types .Function , types .BoundFunction ,
560547 types .Dispatcher )):
561548 key = fn .get_impl_key (sig )
562549 overloads = self ._defns [key ]
563- # print("function or boundfunction or dispatcher")
564550 else :
565551 key = fn
566552 overloads = self ._defns [key ]
567- # print("other")
568- # print("overloads", overloads)
569- # print_overloads(overloads.versions)
570- # print_defns(self._defns)
571553
572554 try :
573555 return _wrap_impl (overloads .find (sig .args ), self , sig )
0 commit comments