diff python/target/instructionselector.py @ 336:d1ecc493384e

Added spiffy armtoken class for bit fiddeling. Added cool test that checks for build repeatability
author Windel Bouwman
date Wed, 19 Feb 2014 22:32:15 +0100
parents 6753763d3bec
children
line wrap: on
line diff
--- a/python/target/instructionselector.py	Mon Feb 17 20:41:30 2014 +0100
+++ b/python/target/instructionselector.py	Wed Feb 19 22:32:15 2014 +0100
@@ -21,6 +21,7 @@
     def newTmp(self):
         return self.temps.__next__()
 
+
     def munchFunction(self, f, frame):
         # Entry point for instruction selection
         assert isinstance(f, ir.Function)
@@ -29,7 +30,7 @@
         self.frame = frame
         # First define labels:
         for bb in f.Blocks:
-            itgt = makeIns(target.Label(bb.name))
+            itgt = makeIns(target.Label(ir.label_name(bb)))
             self.targets[bb] = itgt
         # Generate code for all blocks:
         for bb in f.Blocks: