Mercurial > lcfOS
diff python/transform.py @ 261:444b9df2ed99
try to split up code generation
author | Windel Bouwman |
---|---|
date | Fri, 09 Aug 2013 09:05:13 +0200 |
parents | 7416c923a02a |
children | ea93e0a7a31e |
line wrap: on
line diff
--- a/python/transform.py Tue Aug 06 18:29:53 2013 +0200 +++ b/python/transform.py Fri Aug 09 09:05:13 2013 +0200 @@ -107,8 +107,7 @@ t_new = constMap[i.value] t_old = i.target logging.debug('Replacing {} with {}'.format(t_old, t_new)) - for ui in t_old.used_by: - ui.replaceValue(t_old, t_new) + t_old.replaceby(t_new) to_remove.append(i) else: constMap[i.value] = i.target @@ -118,8 +117,7 @@ t_old = i.result t_new = constMap[k] logging.debug('Replacing {} with {}'.format(t_old, t_new)) - for ui in t_old.used_by: - ui.replaceValue(t_old, t_new) + t_old.replaceby(t_new) to_remove.append(i) else: constMap[k] = i.result