[pypy-svn] r26252 - pypy/dist/pypy/translator/cl

sanxiyn at codespeak.net sanxiyn at codespeak.net
Mon Apr 24 12:00:03 CEST 2006


Author: sanxiyn
Date: Mon Apr 24 12:00:00 2006
New Revision: 26252

Modified:
   pypy/dist/pypy/translator/cl/gencl.py
Log:
Remove more obsolete stuffs


Modified: pypy/dist/pypy/translator/cl/gencl.py
==============================================================================
--- pypy/dist/pypy/translator/cl/gencl.py	(original)
+++ pypy/dist/pypy/translator/cl/gencl.py	Mon Apr 24 12:00:00 2006
@@ -132,18 +132,6 @@
         self.pendinggraphs = [entry_point]
         self.declarations = []
 
-    def annotate(self, input_arg_types):
-        ann = RPythonAnnotator()
-        inputcells = [ann.typeannotation(t) for t in input_arg_types]
-        ann.build_graph_types(self.fun, inputcells)
-        self.setannotator(ann)
-
-    def setannotator(self, annotator):
-        self.ann = annotator
-
-    def get_type(self, var):
-        return var.concretetype
-
     def emitcode(self, public=True):
         lines = list(self.emit())
         declarations = "\n".join(self.declarations)
@@ -172,7 +160,8 @@
             tag = len(self.blockref)
             self.blockref[block] = tag
             for var in block.getvariables():
-                vardict[var] = self.get_type(var)
+                # In the future, we could assign type information here
+                vardict[var] = None
         yield "( last-exc"
         for var in vardict:
             if var in arglist:



More information about the Pypy-commit mailing list