Commit 6add62f3 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Adding reminders to self

parent 0915cbac
...@@ -10,6 +10,7 @@ from Nodes import Node ...@@ -10,6 +10,7 @@ from Nodes import Node
from ExprNodes import AtomicExprNode from ExprNodes import AtomicExprNode
class TempHandle(object): class TempHandle(object):
# THIS IS DEPRECATED, USE LetRefNode instead
temp = None temp = None
needs_xdecref = False needs_xdecref = False
def __init__(self, type): def __init__(self, type):
...@@ -23,6 +24,7 @@ class TempHandle(object): ...@@ -23,6 +24,7 @@ class TempHandle(object):
return CleanupTempRefNode(pos, handle=self, type=self.type) return CleanupTempRefNode(pos, handle=self, type=self.type)
class TempRefNode(AtomicExprNode): class TempRefNode(AtomicExprNode):
# THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle # handle TempHandle
def analyse_types(self, env): def analyse_types(self, env):
...@@ -52,6 +54,7 @@ class TempRefNode(AtomicExprNode): ...@@ -52,6 +54,7 @@ class TempRefNode(AtomicExprNode):
rhs.free_temps(code) rhs.free_temps(code)
class CleanupTempRefNode(TempRefNode): class CleanupTempRefNode(TempRefNode):
# THIS IS DEPRECATED, USE LetRefNode instead
# handle TempHandle # handle TempHandle
def generate_assignment_code(self, rhs, code): def generate_assignment_code(self, rhs, code):
...@@ -63,6 +66,8 @@ class CleanupTempRefNode(TempRefNode): ...@@ -63,6 +66,8 @@ class CleanupTempRefNode(TempRefNode):
self.handle.needs_cleanup = False self.handle.needs_cleanup = False
class TempsBlockNode(Node): class TempsBlockNode(Node):
# THIS IS DEPRECATED, USE LetNode instead
""" """
Creates a block which allocates temporary variables. Creates a block which allocates temporary variables.
This is used by transforms to output constructs that need This is used by transforms to output constructs that need
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment