diff python/ppci/codegen/canon.py @ 307:e609d5296ee9

Massive rewrite of codegenerator
author Windel Bouwman
date Thu, 12 Dec 2013 20:42:56 +0100
parents 6753763d3bec
children 5477e499b039
line wrap: on
line diff
--- a/python/ppci/codegen/canon.py	Mon Dec 09 19:00:21 2013 +0100
+++ b/python/ppci/codegen/canon.py	Thu Dec 12 20:42:56 2013 +0100
@@ -1,4 +1,5 @@
 from .. import ir
+from .. import irutils
 from itertools import chain
 
 def make(function, frame):
@@ -44,7 +45,7 @@
     else:
         raise NotImplementedError('STMT NI: {}'.format(stmt))
 
-newTemp = ir.NamedClassGenerator('canon_reg', ir.Temp).gen
+newTemp = irutils.NamedClassGenerator('canon_reg', ir.Temp).gen
 
 def rewriteExp(exp, frame):
     if isinstance(exp, ir.Binop):