diff test/testcg.py @ 342:86b02c98a717 devel

Moved target directory
author Windel Bouwman
date Sat, 01 Mar 2014 15:40:31 +0100
parents 4d204f6f7d4e
children
line wrap: on
line diff
--- a/test/testcg.py	Fri Feb 28 18:07:14 2014 +0100
+++ b/test/testcg.py	Sat Mar 01 15:40:31 2014 +0100
@@ -2,8 +2,8 @@
 import ppci
 from ppci.codegen import CodeGenerator
 from ppci import ir
-from target.target_list import thumb_target
-import outstream
+from ppci.target.target_list import thumb_target
+from ppci.outstream import BinaryOutputStream
 
 
 def genTestFunction():
@@ -18,7 +18,7 @@
         self.cg = CodeGenerator(thumb_target)
 
     def testFunction(self):
-        s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
+        s = BinaryOutputStream(ppci.objectfile.ObjectFile())
         m, f, bb = genTestFunction()
         bb.addInstruction(ir.Exp(ir.Const(123)))
         bb.addInstruction(ir.Jump(f.epiloog))
@@ -28,7 +28,7 @@
 
 class testArmCodeGeneration(unittest.TestCase):
     def testStack(self):
-        s = outstream.BinaryOutputStream(ppci.objectfile.ObjectFile())
+        s = BinaryOutputStream(ppci.objectfile.ObjectFile())
         cg = CodeGenerator(thumb_target)
         m, f, bb = genTestFunction()
         bb.addInstruction(ir.Move(ir.Mem(ir.Const(1)), ir.Const(22)))