diff python/ppci/irmach.py @ 346:3bb7dcfe5529

expanded arm target
author Windel Bouwman
date Fri, 07 Mar 2014 17:05:32 +0100
parents 86b02c98a717
children 39bf68bf1891
line wrap: on
line diff
--- a/python/ppci/irmach.py	Sun Mar 02 17:12:08 2014 +0100
+++ b/python/ppci/irmach.py	Fri Mar 07 17:05:32 2014 +0100
@@ -24,13 +24,6 @@
     def __repr__(self):
         return 'Frame {}'.format(self.name)
 
-    def lower_to(self, outs):
-        for im in self.instructions:
-            if isinstance(im.assem, Instruction):
-                outs.emit(im.assem)
-            else:
-                outs.emit(im.assem.fromim(im))
-
 
 class AbstractInstruction:
     """ 
@@ -48,12 +41,7 @@
         self.ismove = ismove
 
     def __repr__(self):
-        return self.render()
-
-    def render(self):
-        """
-            Substitutes source, dst and labels in the string
-        """
+        """ Substitutes source, dst and labels in the string """
         if isinstance(self.assem, Instruction):
             x = str(self.assem)
         else:
@@ -62,5 +50,3 @@
             x = x.format(cn, self.dst, self.src, self.others)
         return x
 
-
-makeIns = AbstractInstruction