diff python/ppci/codegen/canon.py @ 394:988f3fb861e4

c3 code generator rewrite
author Windel Bouwman
date Thu, 22 May 2014 08:14:12 +0200
parents c49459768aaa
children
line wrap: on
line diff
--- a/python/ppci/codegen/canon.py	Sat May 17 21:17:40 2014 +0200
+++ b/python/ppci/codegen/canon.py	Thu May 22 08:14:12 2014 +0200
@@ -60,7 +60,7 @@
         return frame.parMap[exp]
     elif isinstance(exp, ir.LocalVariable):
         offset = frame.allocVar(exp)
-        return ir.Add(frame.fp, ir.Const(offset))
+        return ir.Add(frame.fp, ir.Const(offset), "Offset", ir.i32)
     elif isinstance(exp, ir.GlobalVariable):
         #frame.load_global_address(ir.label_name(exp))
         return exp