forked from M-Labs/artiq
parent
6155f65366
commit
ef2af8c331
@ -19,9 +19,6 @@ from .transforms import ASTTypedRewriter, Inferencer, IntMonomorphizer
|
||||
from .transforms.asttyped_rewriter import LocalExtractor
|
||||
|
||||
|
||||
def coredevice_print(x): print(x)
|
||||
|
||||
|
||||
class SpecializedFunction:
|
||||
def __init__(self, instance_type, host_function):
|
||||
self.instance_type = instance_type
|
||||
@ -424,7 +421,7 @@ class StitchingASTTypedRewriter(ASTTypedRewriter):
|
||||
else:
|
||||
# Try to find this value in the host environment and quote it.
|
||||
if node.id == "print":
|
||||
return self.quote(coredevice_print, node.loc)
|
||||
return self.quote(print, node.loc)
|
||||
elif node.id in self.host_environment:
|
||||
return self.quote(self.host_environment[node.id], node.loc)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user