@@ -172,15 +172,6 @@ def _load_global_helpers():
172
172
ll .add_symbol ("PyExc_%s" % (obj .__name__ ), id (obj ))
173
173
174
174
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
-
184
175
class BaseContext (object ):
185
176
"""
186
177
@@ -435,9 +426,7 @@ def get_external_function_type(self, fndesc):
435
426
return fnty
436
427
437
428
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)
439
429
fnty = self .call_conv .get_function_type (fndesc .restype , fndesc .argtypes )
440
- #print("fnty:", fnty)
441
430
fn = module .get_or_insert_function (fnty , name = fndesc .mangled_name )
442
431
self .call_conv .decorate_function (fn , fndesc .args , fndesc .argtypes , noalias = fndesc .noalias )
443
432
if fndesc .inline :
@@ -553,21 +542,14 @@ def get_function(self, fn, sig, _firstcall=True):
553
542
The return value is a callable with the signature (builder, args).
554
543
"""
555
544
assert sig is not None
556
- # print("get_function", fn, sig, type(fn), type(sig))
557
545
sig = sig .as_function ()
558
- # print("get_function", sig, type(sig))
559
546
if isinstance (fn , (types .Function , types .BoundFunction ,
560
547
types .Dispatcher )):
561
548
key = fn .get_impl_key (sig )
562
549
overloads = self ._defns [key ]
563
- # print("function or boundfunction or dispatcher")
564
550
else :
565
551
key = fn
566
552
overloads = self ._defns [key ]
567
- # print("other")
568
- # print("overloads", overloads)
569
- # print_overloads(overloads.versions)
570
- # print_defns(self._defns)
571
553
572
554
try :
573
555
return _wrap_impl (overloads .find (sig .args ), self , sig )
0 commit comments