diff python/ppci/ir2tree.py @ 364:c49459768aaa

Work on globals
author Windel Bouwman
date Wed, 19 Mar 2014 20:24:03 +0100
parents 52492b304adf
children 988f3fb861e4
line wrap: on
line diff
--- a/python/ppci/ir2tree.py	Sun Mar 16 11:28:47 2014 +0100
+++ b/python/ppci/ir2tree.py	Wed Mar 19 20:24:03 2014 +0100
@@ -25,6 +25,12 @@
     t.value = e
     return t
 
+@register(ir.GlobalVariable)
+def global_address_to_tree(e):
+    t = Tree('GLOBALADDRESS')
+    t.value = ir.label_name(e)
+    return t
+
 @register(ir.Const)
 def const_to_tree(e):
     if type(e.value) is bytes: