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

expanded arm target
author Windel Bouwman
date Fri, 07 Mar 2014 17:05:32 +0100
parents 86b02c98a717
children 442fb043d149
line wrap: on
line diff
--- a/python/ppci/codegen/codegen.py	Sun Mar 02 17:12:08 2014 +0100
+++ b/python/ppci/codegen/codegen.py	Fri Mar 07 17:05:32 2014 +0100
@@ -1,7 +1,7 @@
 from .. import ir
 from ..irutils import Verifier
 from ..target import Target
-from ppci import CompilerError
+from .. import CompilerError
 from .canon import make as canonicalize
 from .registerallocator import RegisterAllocator
 import logging
@@ -42,7 +42,7 @@
 
         # Materialize the register allocated instructions into a stream of
         # real instructions.
-        frame.lower_to(outs)
+        self.target.lower_frame_to_stream(frame, outs)
         self.logger.debug('Instructions materialized')
         return frame